cache

package
v0.3.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

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 (*CacheAllocatorBuilder) MACSet

type MACSet

type MACSet struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL