Documentation ¶
Index ¶
- type CacheAllocator
- func (a *CacheAllocator) AddMAC(name, macAddress, ipAddress string) error
- func (a *CacheAllocator) DeleteMAC(name, macAddress string) error
- func (a *CacheAllocator) DeleteMACSet(name string)
- func (a *CacheAllocator) GetIPByMAC(name, macAddress string) (string, error)
- func (a *CacheAllocator) HasMAC(name, macAddress string) (bool, error)
- func (a *CacheAllocator) ListAll(name string) (map[string]string, error)
- func (a *CacheAllocator) NewMACSet(name string) error
- type CacheAllocatorBuilder
- type MACSet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheAllocator ¶
type CacheAllocator struct {
// contains filtered or unexported fields
}
func New ¶
func New() *CacheAllocator
func NewCacheAllocator ¶
func NewCacheAllocator() *CacheAllocator
func (*CacheAllocator) AddMAC ¶
func (a *CacheAllocator) AddMAC(name, macAddress, ipAddress string) error
func (*CacheAllocator) DeleteMAC ¶
func (a *CacheAllocator) DeleteMAC(name, macAddress string) error
func (*CacheAllocator) DeleteMACSet ¶
func (a *CacheAllocator) DeleteMACSet(name string)
func (*CacheAllocator) GetIPByMAC ¶
func (a *CacheAllocator) GetIPByMAC(name, macAddress string) (string, error)
func (*CacheAllocator) HasMAC ¶
func (a *CacheAllocator) HasMAC(name, macAddress string) (bool, error)
func (*CacheAllocator) ListAll ¶
func (a *CacheAllocator) ListAll(name string) (map[string]string, error)
func (*CacheAllocator) NewMACSet ¶
func (a *CacheAllocator) NewMACSet(name string) error
type CacheAllocatorBuilder ¶
type CacheAllocatorBuilder struct {
// contains filtered or unexported fields
}
func NewCacheAllocatorBuilder ¶
func NewCacheAllocatorBuilder() *CacheAllocatorBuilder
func (*CacheAllocatorBuilder) Add ¶
func (b *CacheAllocatorBuilder) Add(name, macAddress, ipAddress string) *CacheAllocatorBuilder
func (*CacheAllocatorBuilder) Build ¶
func (b *CacheAllocatorBuilder) Build() *CacheAllocator
func (*CacheAllocatorBuilder) MACSet ¶
func (b *CacheAllocatorBuilder) MACSet(name string) *CacheAllocatorBuilder
Click to show internal directories.
Click to hide internal directories.