testutils

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyValueStoreMock

type KeyValueStoreMock struct {
	ReadError                error
	WriteError               error
	FlushError               error
	LockError                error
	UnlockError              error
	ModificationTime         time.Time
	GetModificationTimeError error
}

func (*KeyValueStoreMock) Flush

func (store *KeyValueStoreMock) Flush() error

func (*KeyValueStoreMock) GetLockFileModificationTime added in v1.0.35

func (store *KeyValueStoreMock) GetLockFileModificationTime() (time.Time, error)

func (*KeyValueStoreMock) GetLockFileName added in v1.0.35

func (store *KeyValueStoreMock) GetLockFileName() string

func (*KeyValueStoreMock) GetModificationTime

func (store *KeyValueStoreMock) GetModificationTime() (time.Time, error)

func (*KeyValueStoreMock) Lock

func (store *KeyValueStoreMock) Lock(block bool) error

func (*KeyValueStoreMock) Read

func (store *KeyValueStoreMock) Read(key string, value interface{}) error

func (*KeyValueStoreMock) Remove

func (store *KeyValueStoreMock) Remove()

func (*KeyValueStoreMock) Unlock

func (store *KeyValueStoreMock) Unlock(forceUnlock bool) error

func (*KeyValueStoreMock) Write

func (store *KeyValueStoreMock) Write(key string, value interface{}) error

type NetApiMock

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

func (*NetApiMock) AddExternalInterface

func (netApi *NetApiMock) AddExternalInterface(ifName string, subnet string) error

Jump to

Keyboard shortcuts

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