Michael Bridgen
ad44a8816f
Remove subnets from API, since we don't use them
2014-10-23 16:43:41 +01:00
Michael Bridgen
840c0b9f86
Renamed variables for consistency
2014-10-23 16:23:55 +01:00
Bryan Boreham
c63b163703
Formatting in error message
2014-10-22 18:27:55 +01:00
Michael Bridgen
e21069f3ab
Factored out HTTP error + log
2014-10-22 11:58:55 +01:00
Michael Bridgen
0615d122e9
Made zone return errors and http idempotent
...
The Zone DB tells you if you have a duplicate or missing record, but
the HTTP server smoothes these over.
2014-10-21 17:05:03 +01:00
Michael Bridgen
337919d741
Replaced ad-hoc printf with log levels
2014-10-20 18:18:16 +01:00
Michael Bridgen
d3d07deec6
Changed local domain handling
...
1. The local domain is now ".weave.local", which is safer from TLD
pollution
2. If the name given for an IP isn't a subdomain of the local domain,
ignore it
2014-10-20 18:11:14 +01:00
Bryan Boreham
6e3e7dcd68
Support DELETE function
2014-10-14 17:01:13 +01:00
Bryan Boreham
6d32ac80b7
Better error reporting
2014-10-14 16:50:20 +01:00
Bryan Boreham
ff540265a9
Better error-checking
2014-10-14 16:49:27 +01:00
Bryan Boreham
10772f8289
Better error-checking
2014-10-14 16:12:50 +01:00
Bryan Boreham
6bff651e87
Changed to new URL scheme with container identifier
...
Implementation matches design.md better:
- http action changes from POST /add to PUT /name
- each record now has the container identifier
2014-10-14 11:55:45 +01:00
Bryan Boreham
50d343e2fb
Use specified port for http listener
2014-10-10 17:36:46 +01:00
Michael Bridgen
e8e86dadc0
Changed to accept a CIDR address and use net.IP
...
* In general we'll have an IP address and a subnet mask for the weave
network address; account for this in the zone DB and in the HTTP
server.
* Use the net.IP type rather than string, which gives us a bit more
generality (in theory it'll deal with Ipv6 too) and validation (we
attempt to parse the input)
2014-10-07 12:49:52 +01:00
Michael Bridgen
3976e5ceaf
Moved main to top, libs to subpackage
2014-10-04 14:51:46 +01:00