testing

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2017 License: Apache-2.0 Imports: 2 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, 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

Jump to

Keyboard shortcuts

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