Documentation ¶
Index ¶
- func Cleanup(ctx context.Context, a *DHCPAllocator, nic string) <-chan error
- type DHCPAllocator
- func (a *DHCPAllocator) AddLease(hwAddr string, serverIP string, clientIP string, cidr string, routerIP string, ...) (err error)
- 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) ListAll(name string) (map[string]string, error)
- func (a *DHCPAllocator) Run(ctx context.Context, nic string) (err error)
- func (a *DHCPAllocator) Usage()
- type DHCPLease
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DHCPAllocator ¶
type DHCPAllocator struct {
// contains filtered or unexported fields
}
func New ¶
func New() *DHCPAllocator
func NewDHCPAllocator ¶
func NewDHCPAllocator() *DHCPAllocator
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) ListAll ¶
func (a *DHCPAllocator) ListAll(name string) (map[string]string, error)
func (*DHCPAllocator) Run ¶
func (a *DHCPAllocator) Run(ctx context.Context, nic string) (err error)
func (*DHCPAllocator) Usage ¶
func (a *DHCPAllocator) Usage()
Click to show internal directories.
Click to hide internal directories.