Documentation ¶
Index ¶
- type DHCPAllocator
- func (a *DHCPAllocator) AddLease(hwAddr string, serverIP net.IP, clientIP net.IP, cidr string, routerIP net.IP, ...) (err error)
- func (a *DHCPAllocator) CheckLease(hwAddr string) bool
- func (a *DHCPAllocator) DeleteLease(hwAddr string) (err error)
- func (a *DHCPAllocator) DryRun(ctx context.Context, nic string) (err error)
- func (a *DHCPAllocator) GetLease(hwAddr string) (lease DHCPLease)
- func (a *DHCPAllocator) Run(nic string, dryRun bool) (err error)
- func (a *DHCPAllocator) Stop(nic string) (err error)
- func (a *DHCPAllocator) Usage()
- type DHCPLease
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DHCPAllocator ¶
type DHCPAllocator struct {
// contains filtered or unexported fields
}
func NewDHCPAllocator ¶
func NewDHCPAllocator() *DHCPAllocator
func (*DHCPAllocator) CheckLease ¶
func (a *DHCPAllocator) CheckLease(hwAddr string) bool
func (*DHCPAllocator) DeleteLease ¶
func (a *DHCPAllocator) DeleteLease(hwAddr string) (err error)
func (*DHCPAllocator) DryRun ¶
func (a *DHCPAllocator) DryRun(ctx context.Context, nic string) (err error)
func (*DHCPAllocator) GetLease ¶
func (a *DHCPAllocator) GetLease(hwAddr string) (lease DHCPLease)
func (*DHCPAllocator) Stop ¶
func (a *DHCPAllocator) Stop(nic string) (err error)
func (*DHCPAllocator) Usage ¶
func (a *DHCPAllocator) Usage()
Click to show internal directories.
Click to hide internal directories.