testutils

package
v1.15.22 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2024 License: MIT Imports: 2 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 {
	ExistsBool               bool
	ReadError                error
	WriteError               error
	FlushError               error
	LockError                error
	UnlockError              error
	ModificationTime         time.Time
	GetModificationTimeError error
}

func (*KeyValueStoreMock) Exists

func (mockst *KeyValueStoreMock) Exists() bool

func (*KeyValueStoreMock) Flush

func (mockst *KeyValueStoreMock) Flush() error

func (*KeyValueStoreMock) GetModificationTime

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

func (*KeyValueStoreMock) Lock

func (mockst *KeyValueStoreMock) Lock(time.Duration) error

func (*KeyValueStoreMock) Read

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

func (*KeyValueStoreMock) Remove

func (mockst *KeyValueStoreMock) Remove()

func (*KeyValueStoreMock) Unlock

func (mockst *KeyValueStoreMock) Unlock() error

func (*KeyValueStoreMock) Write

func (mockst *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