package testing

import "github.com/containernetworking/cni/plugins/ipam/host-local/backend/testing"

Index

Types

type FakeStore

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

func NewFakeStore

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

func (*FakeStore) Close

func (s *FakeStore) Close() error

func (*FakeStore) LastReservedIP

func (s *FakeStore) LastReservedIP() (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) error

func (*FakeStore) Reserve

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

func (*FakeStore) Unlock

func (s *FakeStore) Unlock() error

Source Files

fake_store.go

Version
v0.5.0
Published
Mar 6, 2017
Platform
js/wasm
Imports
2 packages
Last checked
1 day ago

Tools for package owners.