Documentation
¶
Index ¶
- type KeyValueStoreMock
- func (store *KeyValueStoreMock) Flush() error
- func (store *KeyValueStoreMock) GetLockFileModificationTime() (time.Time, error)
- func (store *KeyValueStoreMock) GetLockFileName() string
- func (store *KeyValueStoreMock) GetModificationTime() (time.Time, error)
- func (store *KeyValueStoreMock) Lock(block bool) error
- func (store *KeyValueStoreMock) Read(key string, value interface{}) error
- func (store *KeyValueStoreMock) Remove()
- func (store *KeyValueStoreMock) Unlock(forceUnlock bool) error
- func (store *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 {
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
Click to show internal directories.
Click to hide internal directories.