testing

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2020 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 FakeStore

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

func NewFakeStore

func NewFakeStore(ipmap map[string]string, lastIPs map[string]net.IP) *FakeStore

func (*FakeStore) Close

func (s *FakeStore) Close() error

func (*FakeStore) GetByID added in v0.8.2

func (s *FakeStore) GetByID(id string, ifname string) []net.IP

func (*FakeStore) LastReservedIP

func (s *FakeStore) LastReservedIP(rangeID string) (net.IP, error)

func (*FakeStore) Lock

func (s *FakeStore) Lock() error

func (*FakeStore) Release

func (s *FakeStore) Release(ip net.IP) error

func (*FakeStore) ReleaseByID

func (s *FakeStore) ReleaseByID(id string, ifname string) error

func (*FakeStore) Reserve

func (s *FakeStore) Reserve(id string, ifname string, ip net.IP, rangeID string) (bool, error)

func (*FakeStore) SetIPMap

func (s *FakeStore) SetIPMap(m map[string]string)

func (*FakeStore) Unlock

func (s *FakeStore) Unlock() error

Jump to

Keyboard shortcuts

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