{"id":16259770,"url":"https://github.com/guilhem/tentacool","last_synced_at":"2025-11-04T11:03:06.652Z","repository":{"id":20061909,"uuid":"23330570","full_name":"guilhem/tentacool","owner":"guilhem","description":"REST API to manage Linux networking via netlink","archived":false,"fork":false,"pushed_at":"2017-03-10T18:35:40.000Z","size":5616,"stargazers_count":63,"open_issues_count":0,"forks_count":16,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-03-17T11:50:29.285Z","etag":null,"topics":["dhcp","gateway","go","netlink","network","rest","route"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/guilhem.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-08-25T22:14:25.000Z","updated_at":"2024-02-06T01:05:37.000Z","dependencies_parsed_at":"2022-09-02T13:41:34.806Z","dependency_job_id":null,"html_url":"https://github.com/guilhem/tentacool","commit_stats":null,"previous_names":["optiflows/tentacool"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guilhem%2Ftentacool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guilhem%2Ftentacool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guilhem%2Ftentacool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guilhem%2Ftentacool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/guilhem","download_url":"https://codeload.github.com/guilhem/tentacool/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244515624,"owners_count":20464923,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dhcp","gateway","go","netlink","network","rest","route"],"created_at":"2024-10-10T16:04:52.559Z","updated_at":"2025-11-04T11:03:06.542Z","avatar_url":"https://github.com/guilhem.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tentacool\n[![Build Status](https://travis-ci.org/guilhem/tentacool.svg?branch=master)](https://travis-ci.org/guilhem/tentacool)\n[![Go report](http://goreportcard.com/badge/guilhem/tentacool)](http://goreportcard.com/report/guilhem/tentacool)\n\n\n## Description\n\n`tentacool` is a Go server controlled via RESTful API through a Unix Domain Socket.\n\n## Goal\n\nMain goal is to manage all under the hood services for a simple \"box\".\nAll done with a auditable, fast and bulletproof software.\n\nSo many software do frontend, backend and system... And finally run in `root` by easiness.\n\n## Configuration\n\nRecommended `/etc/network/interfaces` config for your default interface (for instance `eth0`):\n```\nauto eth0\niface eth0 inet manual\n  pre-up ifconfig $IFACE up\n  post-down ifconfig $IFACE down\n```\n\n## API\n\n### addresses\n\n#### \u003ca name=\"address\"\u003e\u003c/a\u003eaddress object\n\n* `link`: interface to manage\n* `ip`: ip to add ([CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) format)\n* `id`\n\n#### `GET /addresses`\n\nList all current addresses\n\n##### Response\n\n* Array\n  * [address](#address)\n\n\n#### `GET /addresses/:id`\n\n##### Response\n\n* [address](#address)\n\n#### `POST /addresses`\n\nAdd a new address to manage.\n\n##### parameters\n\n* [address](#address)\n`id` optional\n\n##### Response\n\n* [address](#address)\n* headers\n  * `X-Error`: if address is stored in BD but fail to by apply.\n\n##### Example\n\n* without id\n```json\n==\u003e\n{\n  \"link\":\"eth0\",\n  \"ip\":\"192.168.32.11/32\",\n}\n```\n```json\n\u003c==\n{\n  \"id\":\"1\",\n  \"link\":\"eth0\",\n  \"ip\":\"192.168.32.11/32\",\n}\n```\n* with id\n```json\n==\u003e\n{\n  \"id\":\"foo\",\n  \"link\":\"eth0\",\n  \"ip\":\"192.168.32.12/32\",\n}\n```\n```json\n\u003c==\n{\n  \"id\":\"foo\",\n  \"link\":\"eth0\",\n  \"ip\":\"192.168.32.12/32\",\n}\n```\n\n#### `PUT /addresses/:id`\n\nModify an existing address\n\n##### parameters\n\n* [address](#address)\n`id` ignored\n\n##### Response\n\n* [address](#address)\n* headers\n  * `X-Error`: if address is stored in BD but fail to by apply.\n\n\n### dhcp\n\n#### `GET /dhcp`\n\nChecks if DHCP is running on the default interface.\n\n##### Response\n\n`{'active': true|false}`\n\n#### `POST /dhcp`\n\nActivate/deactive DHCP for default interface.\n\n##### parameters\n\n* active `true` or `false`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguilhem%2Ftentacool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fguilhem%2Ftentacool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguilhem%2Ftentacool/lists"}