storage

package
v1.0.15 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ipv4File

func Ipv4File() string

Types

type DanceData

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

func NewDanceData

func NewDanceData() (*DanceData, error)

func (*DanceData) AddEntry

func (d *DanceData) AddEntry(mac net.HardwareAddr, entry *facility.DanceEntry) error

func (*DanceData) GetEntries

func (d *DanceData) GetEntries() (map[uint64]*facility.DanceEntry, error)

return a copy of all entries in storage

func (*DanceData) GetEntry added in v1.0.15

func (d *DanceData) GetEntry(mac net.HardwareAddr) *facility.DanceEntry

func (*DanceData) GetMacByName

func (d *DanceData) GetMacByName(name string) (net.HardwareAddr, error)

return MAC for the given name

func (*DanceData) RemoveEntry

func (d *DanceData) RemoveEntry(mac net.HardwareAddr) error

type Ipv4Data

type Ipv4Data struct {
	// public
	Subnet  string
	Builder *netaddr.IPSetBuilder
}

func (*Ipv4Data) Load

func (d *Ipv4Data) Load() error

func (*Ipv4Data) Store

func (d *Ipv4Data) Store() error

Jump to

Keyboard shortcuts

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