tentacool is a Go server controlled via RESTful API through a Unix Domain Socket.
Main goal is to manage all under the hood services for a simple "box". All done with a auditable, fast and bulletproof software.
So many software do frontend, backend and system... And finally run in root by easiness.
Recommended /etc/network/interfaces config for your default interface (for instance eth0):
auto eth0
iface eth0 inet manual
pre-up ifconfig $IFACE up
post-down ifconfig $IFACE down
link: interface to manageip: ip to add (CIDR format)id
List all current addresses
- Array
Add a new address to manage.
- address
idoptional
- address
- headers
X-Error: if address is stored in BD but fail to by apply.
- without id
==>
{
"link":"eth0",
"ip":"192.168.32.11/32",
}<==
{
"id":"1",
"link":"eth0",
"ip":"192.168.32.11/32",
}- with id
==>
{
"id":"foo",
"link":"eth0",
"ip":"192.168.32.12/32",
}<==
{
"id":"foo",
"link":"eth0",
"ip":"192.168.32.12/32",
}Modify an existing address
- address
idignored
- address
- headers
X-Error: if address is stored in BD but fail to by apply.
Checks if DHCP is running on the default interface.
{'active': true|false}
Activate/deactive DHCP for default interface.
- active
trueorfalse