Documentation
¶
Index ¶
- Constants
- type Lease
- type LogHandler
- type Prefix
- func (p *Prefix) DeclineLease(ctx context.Context, mac string) bool
- func (p *Prefix) DelLease(ctx context.Context, mac string) bool
- func (p *Prefix) GetLease(ctx context.Context, mac string) *Lease
- func (p *Prefix) LoadLeases(ctx context.Context) error
- func (p *Prefix) NewLeaseFromAssignedIP(ctx context.Context, mac string) *Lease
- func (p *Prefix) NewLeaseFromDevice(ctx context.Context, mac string) *Lease
- func (p *Prefix) NewLeaseFromIPRanges(ctx context.Context, mac string) *Lease
- func (p *Prefix) WriteLeases(ctx context.Context) error
- type Server
Constants ¶
View Source
const (
MaxDatagram = 1 << 16
)
View Source
const (
MetadataServiceIP string = "169.254.169.254/32"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogHandler ¶
type Prefix ¶
type Prefix struct {
Prefix string
Domain string
Routers []net.IP
StaticRoutes []*dhcpv4.Route
LeaseDuration time.Duration
NameServers []net.IP
NTPServers []net.IP
IPRanges []int32
MetadataService bool
// contains filtered or unexported fields
}
func (*Prefix) NewLeaseFromAssignedIP ¶
func (*Prefix) NewLeaseFromDevice ¶
func (*Prefix) NewLeaseFromIPRanges ¶
type Server ¶
func (*Server) ListInterfaces ¶
func (*Server) LoadLeases ¶
func (*Server) UpdatePrefixes ¶
func (*Server) WriteLeases ¶
Click to show internal directories.
Click to hide internal directories.