Commit Graph
19 Commits
Author SHA1 Message Date
Michael Bridgen 548039db08 No need to give defaults in docstrings for options
The usage message will include them anyway.
2014-10-28 10:59:30 +00:00
Michael Bridgen 337919d741 Replaced ad-hoc printf with log levels 2014-10-20 18:18:16 +01:00
Bryan Boreham bce06d2e9b Wait for interface in main 2014-10-20 17:26:11 +01:00
Michael Bridgen a3cede3027 Tidied up a few printfs 2014-10-17 15:24:51 +01:00
Michael Bridgen 8c0c252bf7 Made watch=true the default
It's now left out of the entrypoint arguments, so can be supplied as
an argument when running it.
2014-10-17 11:05:56 +01:00
Bryan Boreham c6a74d23e0 Print out command-line args, for debugging 2014-10-16 17:21:15 +01:00
Michael Bridgen 0749460652 Moved updater into server
While we're only reacting to containers going away, it's more
convenient to bundle the docker events watcher into the server.

I've added a flag to switch it on; and switched it on by default in
the container.

I also implemented `Zone.DeleteRecordsFor(ident)`, which removes all
records for a particular container.

One minor change to the structure of the code is that the Zone is now
constructed *outside* the server, and given to it and the updater.
2014-10-16 15:38:32 +01:00
Michael Bridgen b1b75c4a8a Moved the server startup code out of main.go 2014-10-10 11:53:21 +01:00
Bryan Boreham d234fe9506 Move handleMDNS into server file 2014-10-08 12:31:20 +01:00
Bryan Boreham 37924f9f9b Refactor into separate client and server classes 2014-10-08 11:30:42 +01:00
Bryan Boreham 8feddc96ed Merge remote-tracking branch 'upstream/master' 2014-10-07 13:18:34 +01:00
Bryan Boreham ff6f54488f Tidy up 2014-10-07 13:18:07 +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 e7ac6dafb3 Made the weave-local domain "weave" a constant
Plus some logging on startup
2014-10-07 12:46:59 +01:00
Bryan Boreham 574bc2cb9e Refactor MDNSClient as Actor 2014-10-06 17:56:50 +01:00
Bryan Boreham 69c415741e Take interface name as parameter; don't assume ethwe 2014-10-06 13:37:09 +01:00
Bryan Boreham 710fb135a6 Merge remote-tracking branch 'upstream/master'
Conflicts:
	dns/Dockerfile
2014-10-06 10:28:34 +01:00
Michael Bridgen bc5bbd349a Fix up Makefile and main.go for file moves 2014-10-04 15:23:32 +01:00
Michael Bridgen 3976e5ceaf Moved main to top, libs to subpackage 2014-10-04 14:51:46 +01:00