Documentation ¶
Index ¶
- type KeyValueStoreMock
- func (mockst *KeyValueStoreMock) Exists() bool
- func (mockst *KeyValueStoreMock) Flush() error
- func (mockst *KeyValueStoreMock) GetModificationTime() (time.Time, error)
- func (mockst *KeyValueStoreMock) Lock(time.Duration) error
- func (mockst *KeyValueStoreMock) Read(key string, value interface{}) error
- func (mockst *KeyValueStoreMock) Remove()
- func (mockst *KeyValueStoreMock) Unlock() error
- func (mockst *KeyValueStoreMock) Write(key string, value interface{}) error
- type NetApiMock
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) 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, subnet, nicType string) error
Click to show internal directories.
Click to hide internal directories.