Versions in this module Expand all Collapse all v0 v0.1.0 Oct 14, 2014 Changes in this version + const SubnetAdded + const SubnetRemoved + type BaseAttrs struct + PublicIP ip.IP4 + type Config struct + Backend json.RawMessage + Network ip.IP4Net + SubnetLen uint + SubnetMax ip.IP4 + SubnetMin ip.IP4 + func ParseConfig(s string) (*Config, error) + type Event struct + Lease SubnetLease + Type EventType + type EventBatch []Event + type EventType int + type SubnetLease struct + Data string + Network ip.IP4Net + type SubnetManager struct + func NewSubnetManager(etcdEndpoint, prefix string) (*SubnetManager, error) + func (sm *SubnetManager) AcquireLease(extIP ip.IP4, data interface{}, cancel chan bool) (ip.IP4Net, error) + func (sm *SubnetManager) GetConfig() *Config + func (sm *SubnetManager) LeaseRenewer(cancel chan bool) + func (sm *SubnetManager) UpdateSubnet(data string) error + func (sm *SubnetManager) WatchLeases(receiver chan EventBatch, cancel chan bool)