package testing
import "github.com/containernetworking/plugins/plugins/ipam/host-local/backend/testing"
Index ¶
- type FakeStore
- func NewFakeStore(ipmap map[string]string, lastIPs map[string]net.IP) *FakeStore
- func (s *FakeStore) Close() error
- func (s *FakeStore) GetByID(id string, _ string) []net.IP
- func (s *FakeStore) LastReservedIP(rangeID string) (net.IP, error)
- func (s *FakeStore) Lock() error
- func (s *FakeStore) ReleaseByID(id string, _ string) error
- func (s *FakeStore) Reserve(id string, _ string, ip net.IP, rangeID string) (bool, error)
- func (s *FakeStore) SetIPMap(m map[string]string)
- func (s *FakeStore) Unlock() error
Types ¶
type FakeStore ¶
type FakeStore struct {
// contains filtered or unexported fields
}
func NewFakeStore ¶
func (*FakeStore) Close ¶
func (*FakeStore) GetByID ¶
func (*FakeStore) LastReservedIP ¶
func (*FakeStore) Lock ¶
func (*FakeStore) ReleaseByID ¶
func (*FakeStore) Reserve ¶
func (*FakeStore) SetIPMap ¶
func (*FakeStore) Unlock ¶
Source Files ¶
- Version
- v1.7.1 (latest)
- Published
- Apr 25, 2025
- Platform
- linux/amd64
- Imports
- 3 packages
- Last checked
- 1 day ago –
Tools for package owners.