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.
Be sure to set the correct GOPATH and GOROOT environment variables. You can make use of godeb which set you up with the version of Go you want. (Tentacool is using >= 1.2)
Build Tentacool using gb.
An automatic of the executable from master branch can also be found on drone.io.
# Get GB
go get github.com/constabulary/gb/...
# Fetch dependencies
gb vendor restore
# Build tentacool
gb build
./bin/tentacool -help
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
id
optional
- 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
id
ignored
- 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
true
orfalse