Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
Config holds all configuration for the provider.
func (*Config) DNSServers ¶
DNSServers returns the dns server addresses
func (*Config) LeaseDuration ¶
LeaseDuration returns the client lease duration
func (*Config) LoadConfig ¶
LoadConfig loads and validates the KV provider config.
type DHCP ¶
type DHCP struct {
// contains filtered or unexported fields
}
DHCP is a provider of dhcp functionality.
func (*DHCP) RegisterTasks ¶
RegisterTasks registers all of DHCP's task handlers with the server.
type Lease ¶
type Lease struct { DNS []net.IP `json:"dns"` Duration time.Duration `json:"duration"` Gateway net.IP `json:"gateway"` Net net.IPNet `json:"net"` }
Lease specifies the dhcp lease returned from the "dhcp-offer-lease" endpoint.
type Mock ¶
type Mock struct { RandIP func() net.IP Config *Config sync.Mutex // contains filtered or unexported fields }
Mock is a mock dhcp provider.
func (*Mock) RegisterTasks ¶
RegisterTasks registers all of Mock's task handlers with the server.
Click to show internal directories.
Click to hide internal directories.