Documentation ¶
Index ¶
- type DHCPAllocator
- func (a *DHCPAllocator) AddLease(hwAddr string, poolName string, clientIP string, ref string) (err error)
- func (a *DHCPAllocator) AddPool(name string, serverIP string, subnetMask string, routerIP string, ...) (err error)
- func (a *DHCPAllocator) CheckLease(hwAddr string) bool
- func (a *DHCPAllocator) CheckPool(name string) bool
- func (a *DHCPAllocator) DeleteLease(hwAddr string) (err error)
- func (a *DHCPAllocator) DeletePool(name string) (err error)
- func (a *DHCPAllocator) GetLease(hwAddr string) (lease DHCPLease)
- func (a *DHCPAllocator) GetPool(name string) (pool DHCPPool)
- func (a *DHCPAllocator) Run(nic string, serverip string) (err error)
- func (a *DHCPAllocator) Stop(nic string) (err error)
- func (a *DHCPAllocator) Usage()
- type DHCPLease
- type DHCPPool
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 New ¶
func New() *DHCPAllocator
func NewDHCPAllocator ¶
func NewDHCPAllocator() *DHCPAllocator
func (*DHCPAllocator) CheckLease ¶
func (a *DHCPAllocator) CheckLease(hwAddr string) bool
func (*DHCPAllocator) CheckPool ¶ added in v0.4.0
func (a *DHCPAllocator) CheckPool(name string) bool
func (*DHCPAllocator) DeleteLease ¶
func (a *DHCPAllocator) DeleteLease(hwAddr string) (err error)
func (*DHCPAllocator) DeletePool ¶ added in v0.4.0
func (a *DHCPAllocator) DeletePool(name string) (err error)
func (*DHCPAllocator) GetLease ¶
func (a *DHCPAllocator) GetLease(hwAddr string) (lease DHCPLease)
func (*DHCPAllocator) GetPool ¶ added in v0.4.0
func (a *DHCPAllocator) GetPool(name string) (pool DHCPPool)
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.