Documentation ¶
Overview ¶
Package store is a generated GoMock package.
Package store is a generated GoMock package.
Package store is a generated GoMock package.
Package mock_device is a generated GoMock package.
Package store is a generated GoMock package.
Package store is a generated GoMock package.
Package store is a generated GoMock package.
Index ¶
- type MockDeviceChangesStore
- func (m *MockDeviceChangesStore) Close() error
- func (m *MockDeviceChangesStore) Create(change *device0.DeviceChange) error
- func (m *MockDeviceChangesStore) Delete(change *device0.DeviceChange) error
- func (m *MockDeviceChangesStore) EXPECT() *MockDeviceChangesStoreMockRecorder
- func (m *MockDeviceChangesStore) Get(id device0.ID) (*device0.DeviceChange, error)
- func (m *MockDeviceChangesStore) List(deviceID device1.VersionedID, ch chan<- *device0.DeviceChange) (stream.Context, error)
- func (m *MockDeviceChangesStore) Update(change *device0.DeviceChange) error
- func (m *MockDeviceChangesStore) Watch(deviceID device1.VersionedID, ch chan<- stream.Event, ...) (stream.Context, error)
- type MockDeviceChangesStoreMockRecorder
- func (mr *MockDeviceChangesStoreMockRecorder) Close() *gomock.Call
- func (mr *MockDeviceChangesStoreMockRecorder) Create(change interface{}) *gomock.Call
- func (mr *MockDeviceChangesStoreMockRecorder) Delete(change interface{}) *gomock.Call
- func (mr *MockDeviceChangesStoreMockRecorder) Get(id interface{}) *gomock.Call
- func (mr *MockDeviceChangesStoreMockRecorder) List(deviceID, ch interface{}) *gomock.Call
- func (mr *MockDeviceChangesStoreMockRecorder) Update(change interface{}) *gomock.Call
- func (mr *MockDeviceChangesStoreMockRecorder) Watch(deviceID, ch interface{}, opts ...interface{}) *gomock.Call
- type MockDeviceChangesWatchOption
- type MockDeviceChangesWatchOptionMockRecorder
- type MockDeviceSnapshotStore
- func (m *MockDeviceSnapshotStore) Close() error
- func (m *MockDeviceSnapshotStore) Create(snapshot *device0.DeviceSnapshot) error
- func (m *MockDeviceSnapshotStore) Delete(snapshot *device0.DeviceSnapshot) error
- func (m *MockDeviceSnapshotStore) EXPECT() *MockDeviceSnapshotStoreMockRecorder
- func (m *MockDeviceSnapshotStore) Get(id device0.ID) (*device0.DeviceSnapshot, error)
- func (m *MockDeviceSnapshotStore) List(arg0 chan<- *device0.DeviceSnapshot) (stream.Context, error)
- func (m *MockDeviceSnapshotStore) Load(deviceID device.VersionedID) (*device0.Snapshot, error)
- func (m *MockDeviceSnapshotStore) LoadAll(ch chan<- *device0.Snapshot) (stream.Context, error)
- func (m *MockDeviceSnapshotStore) Store(snapshot *device0.Snapshot) error
- func (m *MockDeviceSnapshotStore) Update(snapshot *device0.DeviceSnapshot) error
- func (m *MockDeviceSnapshotStore) Watch(arg0 chan<- stream.Event) (stream.Context, error)
- func (m *MockDeviceSnapshotStore) WatchAll(arg0 chan<- stream.Event) (stream.Context, error)
- type MockDeviceSnapshotStoreMockRecorder
- func (mr *MockDeviceSnapshotStoreMockRecorder) Close() *gomock.Call
- func (mr *MockDeviceSnapshotStoreMockRecorder) Create(snapshot interface{}) *gomock.Call
- func (mr *MockDeviceSnapshotStoreMockRecorder) Delete(snapshot interface{}) *gomock.Call
- func (mr *MockDeviceSnapshotStoreMockRecorder) Get(id interface{}) *gomock.Call
- func (mr *MockDeviceSnapshotStoreMockRecorder) List(arg0 interface{}) *gomock.Call
- func (mr *MockDeviceSnapshotStoreMockRecorder) Load(deviceID interface{}) *gomock.Call
- func (mr *MockDeviceSnapshotStoreMockRecorder) LoadAll(ch interface{}) *gomock.Call
- func (mr *MockDeviceSnapshotStoreMockRecorder) Store(snapshot interface{}) *gomock.Call
- func (mr *MockDeviceSnapshotStoreMockRecorder) Update(snapshot interface{}) *gomock.Call
- func (mr *MockDeviceSnapshotStoreMockRecorder) Watch(arg0 interface{}) *gomock.Call
- func (mr *MockDeviceSnapshotStoreMockRecorder) WatchAll(arg0 interface{}) *gomock.Call
- type MockDeviceStateStore
- type MockDeviceStateStoreMockRecorder
- type MockDeviceStore
- func (m *MockDeviceStore) EXPECT() *MockDeviceStoreMockRecorder
- func (m *MockDeviceStore) Get(arg0 device.ID) (*device.Device, error)
- func (m *MockDeviceStore) List(arg0 chan<- *device.Device) error
- func (m *MockDeviceStore) Update(arg0 *device.Device) (*device.Device, error)
- func (m *MockDeviceStore) Watch(arg0 chan<- *device.ListResponse) error
- type MockDeviceStoreMockRecorder
- func (mr *MockDeviceStoreMockRecorder) Get(arg0 interface{}) *gomock.Call
- func (mr *MockDeviceStoreMockRecorder) List(arg0 interface{}) *gomock.Call
- func (mr *MockDeviceStoreMockRecorder) Update(arg0 interface{}) *gomock.Call
- func (mr *MockDeviceStoreMockRecorder) Watch(arg0 interface{}) *gomock.Call
- type MockMastershipStore
- func (m *MockMastershipStore) Close() error
- func (m *MockMastershipStore) EXPECT() *MockMastershipStoreMockRecorder
- func (m *MockMastershipStore) GetMastership(id device.ID) (*mastership.Mastership, error)
- func (m *MockMastershipStore) NodeID() string
- func (m *MockMastershipStore) Watch(arg0 device.ID, arg1 chan<- mastership.Mastership) error
- type MockMastershipStoreMockRecorder
- func (mr *MockMastershipStoreMockRecorder) Close() *gomock.Call
- func (mr *MockMastershipStoreMockRecorder) GetMastership(id interface{}) *gomock.Call
- func (mr *MockMastershipStoreMockRecorder) NodeID() *gomock.Call
- func (mr *MockMastershipStoreMockRecorder) Watch(arg0, arg1 interface{}) *gomock.Call
- type MockNetworkChangesStore
- func (m *MockNetworkChangesStore) Close() error
- func (m *MockNetworkChangesStore) Create(config *network0.NetworkChange) error
- func (m *MockNetworkChangesStore) Delete(config *network0.NetworkChange) error
- func (m *MockNetworkChangesStore) EXPECT() *MockNetworkChangesStoreMockRecorder
- func (m *MockNetworkChangesStore) Get(id network0.ID) (*network0.NetworkChange, error)
- func (m *MockNetworkChangesStore) GetByIndex(index network0.Index) (*network0.NetworkChange, error)
- func (m *MockNetworkChangesStore) GetNext(index network0.Index) (*network0.NetworkChange, error)
- func (m *MockNetworkChangesStore) GetPrev(index network0.Index) (*network0.NetworkChange, error)
- func (m *MockNetworkChangesStore) List(arg0 chan<- *network0.NetworkChange) (stream.Context, error)
- func (m *MockNetworkChangesStore) Update(config *network0.NetworkChange) error
- func (m *MockNetworkChangesStore) Watch(arg0 chan<- stream.Event, arg1 ...network.WatchOption) (stream.Context, error)
- type MockNetworkChangesStoreMockRecorder
- func (mr *MockNetworkChangesStoreMockRecorder) Close() *gomock.Call
- func (mr *MockNetworkChangesStoreMockRecorder) Create(config interface{}) *gomock.Call
- func (mr *MockNetworkChangesStoreMockRecorder) Delete(config interface{}) *gomock.Call
- func (mr *MockNetworkChangesStoreMockRecorder) Get(id interface{}) *gomock.Call
- func (mr *MockNetworkChangesStoreMockRecorder) GetByIndex(index interface{}) *gomock.Call
- func (mr *MockNetworkChangesStoreMockRecorder) GetNext(index interface{}) *gomock.Call
- func (mr *MockNetworkChangesStoreMockRecorder) GetPrev(index interface{}) *gomock.Call
- func (mr *MockNetworkChangesStoreMockRecorder) List(arg0 interface{}) *gomock.Call
- func (mr *MockNetworkChangesStoreMockRecorder) Update(config interface{}) *gomock.Call
- func (mr *MockNetworkChangesStoreMockRecorder) Watch(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- type MockNetworkChangesWatchOption
- type MockNetworkChangesWatchOptionMockRecorder
- type MockNetworkSnapshotStore
- func (m *MockNetworkSnapshotStore) Close() error
- func (m *MockNetworkSnapshotStore) Create(snapshot *network.NetworkSnapshot) error
- func (m *MockNetworkSnapshotStore) Delete(snapshot *network.NetworkSnapshot) error
- func (m *MockNetworkSnapshotStore) EXPECT() *MockNetworkSnapshotStoreMockRecorder
- func (m *MockNetworkSnapshotStore) Get(id network.ID) (*network.NetworkSnapshot, error)
- func (m *MockNetworkSnapshotStore) GetByIndex(index network.Index) (*network.NetworkSnapshot, error)
- func (m *MockNetworkSnapshotStore) List(arg0 chan<- *network.NetworkSnapshot) (stream.Context, error)
- func (m *MockNetworkSnapshotStore) Update(snapshot *network.NetworkSnapshot) error
- func (m *MockNetworkSnapshotStore) Watch(arg0 chan<- stream.Event) (stream.Context, error)
- type MockNetworkSnapshotStoreMockRecorder
- func (mr *MockNetworkSnapshotStoreMockRecorder) Close() *gomock.Call
- func (mr *MockNetworkSnapshotStoreMockRecorder) Create(snapshot interface{}) *gomock.Call
- func (mr *MockNetworkSnapshotStoreMockRecorder) Delete(snapshot interface{}) *gomock.Call
- func (mr *MockNetworkSnapshotStoreMockRecorder) Get(id interface{}) *gomock.Call
- func (mr *MockNetworkSnapshotStoreMockRecorder) GetByIndex(index interface{}) *gomock.Call
- func (mr *MockNetworkSnapshotStoreMockRecorder) List(arg0 interface{}) *gomock.Call
- func (mr *MockNetworkSnapshotStoreMockRecorder) Update(snapshot interface{}) *gomock.Call
- func (mr *MockNetworkSnapshotStoreMockRecorder) Watch(arg0 interface{}) *gomock.Call
- type MockStores
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockDeviceChangesStore ¶
type MockDeviceChangesStore struct {
// contains filtered or unexported fields
}
MockDeviceChangesStore is a mock of Store interface
func NewMockDeviceChangesStore ¶
func NewMockDeviceChangesStore(ctrl *gomock.Controller) *MockDeviceChangesStore
NewMockDeviceChangesStore creates a new mock instance
func (*MockDeviceChangesStore) Close ¶
func (m *MockDeviceChangesStore) Close() error
Close mocks base method
func (*MockDeviceChangesStore) Create ¶
func (m *MockDeviceChangesStore) Create(change *device0.DeviceChange) error
Create mocks base method
func (*MockDeviceChangesStore) Delete ¶
func (m *MockDeviceChangesStore) Delete(change *device0.DeviceChange) error
Delete mocks base method
func (*MockDeviceChangesStore) EXPECT ¶
func (m *MockDeviceChangesStore) EXPECT() *MockDeviceChangesStoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockDeviceChangesStore) Get ¶
func (m *MockDeviceChangesStore) Get(id device0.ID) (*device0.DeviceChange, error)
Get mocks base method
func (*MockDeviceChangesStore) List ¶
func (m *MockDeviceChangesStore) List(deviceID device1.VersionedID, ch chan<- *device0.DeviceChange) (stream.Context, error)
List mocks base method
func (*MockDeviceChangesStore) Update ¶
func (m *MockDeviceChangesStore) Update(change *device0.DeviceChange) error
Update mocks base method
func (*MockDeviceChangesStore) Watch ¶
func (m *MockDeviceChangesStore) Watch(deviceID device1.VersionedID, ch chan<- stream.Event, opts ...device.WatchOption) (stream.Context, error)
Watch mocks base method
type MockDeviceChangesStoreMockRecorder ¶
type MockDeviceChangesStoreMockRecorder struct {
// contains filtered or unexported fields
}
MockDeviceChangesStoreMockRecorder is the mock recorder for MockStore
func (*MockDeviceChangesStoreMockRecorder) Close ¶
func (mr *MockDeviceChangesStoreMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close
func (*MockDeviceChangesStoreMockRecorder) Create ¶
func (mr *MockDeviceChangesStoreMockRecorder) Create(change interface{}) *gomock.Call
Create indicates an expected call of Create
func (*MockDeviceChangesStoreMockRecorder) Delete ¶
func (mr *MockDeviceChangesStoreMockRecorder) Delete(change interface{}) *gomock.Call
Delete indicates an expected call of Delete
func (*MockDeviceChangesStoreMockRecorder) Get ¶
func (mr *MockDeviceChangesStoreMockRecorder) Get(id interface{}) *gomock.Call
Get indicates an expected call of Get
func (*MockDeviceChangesStoreMockRecorder) List ¶
func (mr *MockDeviceChangesStoreMockRecorder) List(deviceID, ch interface{}) *gomock.Call
List indicates an expected call of List
func (*MockDeviceChangesStoreMockRecorder) Update ¶
func (mr *MockDeviceChangesStoreMockRecorder) Update(change interface{}) *gomock.Call
Update indicates an expected call of Update
func (*MockDeviceChangesStoreMockRecorder) Watch ¶
func (mr *MockDeviceChangesStoreMockRecorder) Watch(deviceID, ch interface{}, opts ...interface{}) *gomock.Call
Watch indicates an expected call of Watch
type MockDeviceChangesWatchOption ¶
type MockDeviceChangesWatchOption struct {
// contains filtered or unexported fields
}
MockDeviceChangesWatchOption is a mock of WatchOption interface
func NewMockDeviceChangesWatchOption ¶
func NewMockDeviceChangesWatchOption(ctrl *gomock.Controller) *MockDeviceChangesWatchOption
NewMockDeviceChangesWatchOption creates a new mock instance
func (*MockDeviceChangesWatchOption) EXPECT ¶
func (m *MockDeviceChangesWatchOption) EXPECT() *MockDeviceChangesWatchOptionMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockDeviceChangesWatchOptionMockRecorder ¶
type MockDeviceChangesWatchOptionMockRecorder struct {
// contains filtered or unexported fields
}
MockDeviceChangesWatchOptionMockRecorder is the mock recorder for MockWatchOption
type MockDeviceSnapshotStore ¶
type MockDeviceSnapshotStore struct {
// contains filtered or unexported fields
}
MockDeviceSnapshotStore is a mock of Store interface
func NewMockDeviceSnapshotStore ¶
func NewMockDeviceSnapshotStore(ctrl *gomock.Controller) *MockDeviceSnapshotStore
NewMockDeviceSnapshotStore creates a new mock instance
func (*MockDeviceSnapshotStore) Close ¶
func (m *MockDeviceSnapshotStore) Close() error
Close mocks base method
func (*MockDeviceSnapshotStore) Create ¶
func (m *MockDeviceSnapshotStore) Create(snapshot *device0.DeviceSnapshot) error
Create mocks base method
func (*MockDeviceSnapshotStore) Delete ¶
func (m *MockDeviceSnapshotStore) Delete(snapshot *device0.DeviceSnapshot) error
Delete mocks base method
func (*MockDeviceSnapshotStore) EXPECT ¶
func (m *MockDeviceSnapshotStore) EXPECT() *MockDeviceSnapshotStoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockDeviceSnapshotStore) Get ¶
func (m *MockDeviceSnapshotStore) Get(id device0.ID) (*device0.DeviceSnapshot, error)
Get mocks base method
func (*MockDeviceSnapshotStore) List ¶
func (m *MockDeviceSnapshotStore) List(arg0 chan<- *device0.DeviceSnapshot) (stream.Context, error)
List mocks base method
func (*MockDeviceSnapshotStore) Load ¶
func (m *MockDeviceSnapshotStore) Load(deviceID device.VersionedID) (*device0.Snapshot, error)
Load mocks base method
func (*MockDeviceSnapshotStore) Store ¶
func (m *MockDeviceSnapshotStore) Store(snapshot *device0.Snapshot) error
Store mocks base method
func (*MockDeviceSnapshotStore) Update ¶
func (m *MockDeviceSnapshotStore) Update(snapshot *device0.DeviceSnapshot) error
Update mocks base method
type MockDeviceSnapshotStoreMockRecorder ¶
type MockDeviceSnapshotStoreMockRecorder struct {
// contains filtered or unexported fields
}
MockDeviceSnapshotStoreMockRecorder is the mock recorder for MockDeviceSnapshotStore
func (*MockDeviceSnapshotStoreMockRecorder) Close ¶
func (mr *MockDeviceSnapshotStoreMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close
func (*MockDeviceSnapshotStoreMockRecorder) Create ¶
func (mr *MockDeviceSnapshotStoreMockRecorder) Create(snapshot interface{}) *gomock.Call
Create indicates an expected call of Create
func (*MockDeviceSnapshotStoreMockRecorder) Delete ¶
func (mr *MockDeviceSnapshotStoreMockRecorder) Delete(snapshot interface{}) *gomock.Call
Delete indicates an expected call of Delete
func (*MockDeviceSnapshotStoreMockRecorder) Get ¶
func (mr *MockDeviceSnapshotStoreMockRecorder) Get(id interface{}) *gomock.Call
Get indicates an expected call of Get
func (*MockDeviceSnapshotStoreMockRecorder) List ¶
func (mr *MockDeviceSnapshotStoreMockRecorder) List(arg0 interface{}) *gomock.Call
List indicates an expected call of List
func (*MockDeviceSnapshotStoreMockRecorder) Load ¶
func (mr *MockDeviceSnapshotStoreMockRecorder) Load(deviceID interface{}) *gomock.Call
Load indicates an expected call of Load
func (*MockDeviceSnapshotStoreMockRecorder) LoadAll ¶
func (mr *MockDeviceSnapshotStoreMockRecorder) LoadAll(ch interface{}) *gomock.Call
LoadAll indicates an expected call of LoadAll
func (*MockDeviceSnapshotStoreMockRecorder) Store ¶
func (mr *MockDeviceSnapshotStoreMockRecorder) Store(snapshot interface{}) *gomock.Call
Store indicates an expected call of Store
func (*MockDeviceSnapshotStoreMockRecorder) Update ¶
func (mr *MockDeviceSnapshotStoreMockRecorder) Update(snapshot interface{}) *gomock.Call
Update indicates an expected call of Update
func (*MockDeviceSnapshotStoreMockRecorder) Watch ¶
func (mr *MockDeviceSnapshotStoreMockRecorder) Watch(arg0 interface{}) *gomock.Call
Watch indicates an expected call of Watch
func (*MockDeviceSnapshotStoreMockRecorder) WatchAll ¶
func (mr *MockDeviceSnapshotStoreMockRecorder) WatchAll(arg0 interface{}) *gomock.Call
WatchAll indicates an expected call of WatchAll
type MockDeviceStateStore ¶
type MockDeviceStateStore struct {
// contains filtered or unexported fields
}
MockDeviceStateStore is a mock of Store interface
func NewMockDeviceStateStore ¶
func NewMockDeviceStateStore(ctrl *gomock.Controller) *MockDeviceStateStore
NewMockDeviceStateStore creates a new mock instance
func (*MockDeviceStateStore) EXPECT ¶
func (m *MockDeviceStateStore) EXPECT() *MockDeviceStateStoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockDeviceStateStore) Get ¶
func (m *MockDeviceStateStore) Get(id device0.VersionedID, revision network.Revision) ([]*device.PathValue, error)
Get mocks base method
type MockDeviceStateStoreMockRecorder ¶
type MockDeviceStateStoreMockRecorder struct {
// contains filtered or unexported fields
}
MockDeviceStateStoreMockRecorder is the mock recorder for MockDeviceStateStore
func (*MockDeviceStateStoreMockRecorder) Get ¶
func (mr *MockDeviceStateStoreMockRecorder) Get(id, revision interface{}) *gomock.Call
Get indicates an expected call of Get
type MockDeviceStore ¶
type MockDeviceStore struct {
// contains filtered or unexported fields
}
MockDeviceStore is a mock of Store interface
func NewMockDeviceStore ¶
func NewMockDeviceStore(ctrl *gomock.Controller) *MockDeviceStore
NewMockDeviceStore creates a new mock instance
func (*MockDeviceStore) EXPECT ¶
func (m *MockDeviceStore) EXPECT() *MockDeviceStoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockDeviceStore) List ¶
func (m *MockDeviceStore) List(arg0 chan<- *device.Device) error
List mocks base method
func (*MockDeviceStore) Watch ¶
func (m *MockDeviceStore) Watch(arg0 chan<- *device.ListResponse) error
Watch mocks base method
type MockDeviceStoreMockRecorder ¶
type MockDeviceStoreMockRecorder struct {
// contains filtered or unexported fields
}
MockDeviceStoreMockRecorder is the mock recorder for MockDeviceStore
func (*MockDeviceStoreMockRecorder) Get ¶
func (mr *MockDeviceStoreMockRecorder) Get(arg0 interface{}) *gomock.Call
Get indicates an expected call of Get
func (*MockDeviceStoreMockRecorder) List ¶
func (mr *MockDeviceStoreMockRecorder) List(arg0 interface{}) *gomock.Call
List indicates an expected call of List
func (*MockDeviceStoreMockRecorder) Update ¶
func (mr *MockDeviceStoreMockRecorder) Update(arg0 interface{}) *gomock.Call
Update indicates an expected call of Update
func (*MockDeviceStoreMockRecorder) Watch ¶
func (mr *MockDeviceStoreMockRecorder) Watch(arg0 interface{}) *gomock.Call
Watch indicates an expected call of Watch
type MockMastershipStore ¶
type MockMastershipStore struct {
// contains filtered or unexported fields
}
MockMastershipStore is a mock of Store interface
func NewMockMastershipStore ¶
func NewMockMastershipStore(ctrl *gomock.Controller) *MockMastershipStore
NewMockMastershipStore creates a new mock instance
func (*MockMastershipStore) Close ¶
func (m *MockMastershipStore) Close() error
Close mocks base method
func (*MockMastershipStore) EXPECT ¶
func (m *MockMastershipStore) EXPECT() *MockMastershipStoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockMastershipStore) GetMastership ¶ added in v0.6.11
func (m *MockMastershipStore) GetMastership(id device.ID) (*mastership.Mastership, error)
GetMastership mocks base method
func (*MockMastershipStore) NodeID ¶
func (m *MockMastershipStore) NodeID() string
NodeID mocks base method
func (*MockMastershipStore) Watch ¶
func (m *MockMastershipStore) Watch(arg0 device.ID, arg1 chan<- mastership.Mastership) error
Watch mocks base method
type MockMastershipStoreMockRecorder ¶
type MockMastershipStoreMockRecorder struct {
// contains filtered or unexported fields
}
MockMastershipStoreMockRecorder is the mock recorder for MockMastershipStore
func (*MockMastershipStoreMockRecorder) Close ¶
func (mr *MockMastershipStoreMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close
func (*MockMastershipStoreMockRecorder) GetMastership ¶ added in v0.6.11
func (mr *MockMastershipStoreMockRecorder) GetMastership(id interface{}) *gomock.Call
GetMastership indicates an expected call of GetMastership
func (*MockMastershipStoreMockRecorder) NodeID ¶
func (mr *MockMastershipStoreMockRecorder) NodeID() *gomock.Call
NodeID indicates an expected call of NodeID
func (*MockMastershipStoreMockRecorder) Watch ¶
func (mr *MockMastershipStoreMockRecorder) Watch(arg0, arg1 interface{}) *gomock.Call
Watch indicates an expected call of Watch
type MockNetworkChangesStore ¶
type MockNetworkChangesStore struct {
// contains filtered or unexported fields
}
MockNetworkChangesStore is a mock of Store interface
func NewMockNetworkChangesStore ¶
func NewMockNetworkChangesStore(ctrl *gomock.Controller) *MockNetworkChangesStore
NewMockNetworkChangesStore creates a new mock instance
func (*MockNetworkChangesStore) Close ¶
func (m *MockNetworkChangesStore) Close() error
Close mocks base method
func (*MockNetworkChangesStore) Create ¶
func (m *MockNetworkChangesStore) Create(config *network0.NetworkChange) error
Create mocks base method
func (*MockNetworkChangesStore) Delete ¶
func (m *MockNetworkChangesStore) Delete(config *network0.NetworkChange) error
Delete mocks base method
func (*MockNetworkChangesStore) EXPECT ¶
func (m *MockNetworkChangesStore) EXPECT() *MockNetworkChangesStoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockNetworkChangesStore) Get ¶
func (m *MockNetworkChangesStore) Get(id network0.ID) (*network0.NetworkChange, error)
Get mocks base method
func (*MockNetworkChangesStore) GetByIndex ¶
func (m *MockNetworkChangesStore) GetByIndex(index network0.Index) (*network0.NetworkChange, error)
GetByIndex mocks base method
func (*MockNetworkChangesStore) GetNext ¶
func (m *MockNetworkChangesStore) GetNext(index network0.Index) (*network0.NetworkChange, error)
GetNext mocks base method
func (*MockNetworkChangesStore) GetPrev ¶
func (m *MockNetworkChangesStore) GetPrev(index network0.Index) (*network0.NetworkChange, error)
GetPrev mocks base method
func (*MockNetworkChangesStore) List ¶
func (m *MockNetworkChangesStore) List(arg0 chan<- *network0.NetworkChange) (stream.Context, error)
List mocks base method
func (*MockNetworkChangesStore) Update ¶
func (m *MockNetworkChangesStore) Update(config *network0.NetworkChange) error
Update mocks base method
func (*MockNetworkChangesStore) Watch ¶
func (m *MockNetworkChangesStore) Watch(arg0 chan<- stream.Event, arg1 ...network.WatchOption) (stream.Context, error)
Watch mocks base method
type MockNetworkChangesStoreMockRecorder ¶
type MockNetworkChangesStoreMockRecorder struct {
// contains filtered or unexported fields
}
MockNetworkChangesStoreMockRecorder is the mock recorder for MockStore
func (*MockNetworkChangesStoreMockRecorder) Close ¶
func (mr *MockNetworkChangesStoreMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close
func (*MockNetworkChangesStoreMockRecorder) Create ¶
func (mr *MockNetworkChangesStoreMockRecorder) Create(config interface{}) *gomock.Call
Create indicates an expected call of Create
func (*MockNetworkChangesStoreMockRecorder) Delete ¶
func (mr *MockNetworkChangesStoreMockRecorder) Delete(config interface{}) *gomock.Call
Delete indicates an expected call of Delete
func (*MockNetworkChangesStoreMockRecorder) Get ¶
func (mr *MockNetworkChangesStoreMockRecorder) Get(id interface{}) *gomock.Call
Get indicates an expected call of Get
func (*MockNetworkChangesStoreMockRecorder) GetByIndex ¶
func (mr *MockNetworkChangesStoreMockRecorder) GetByIndex(index interface{}) *gomock.Call
GetByIndex indicates an expected call of GetByIndex
func (*MockNetworkChangesStoreMockRecorder) GetNext ¶
func (mr *MockNetworkChangesStoreMockRecorder) GetNext(index interface{}) *gomock.Call
GetNext indicates an expected call of GetNext
func (*MockNetworkChangesStoreMockRecorder) GetPrev ¶
func (mr *MockNetworkChangesStoreMockRecorder) GetPrev(index interface{}) *gomock.Call
GetPrev indicates an expected call of GetPrev
func (*MockNetworkChangesStoreMockRecorder) List ¶
func (mr *MockNetworkChangesStoreMockRecorder) List(arg0 interface{}) *gomock.Call
List indicates an expected call of List
func (*MockNetworkChangesStoreMockRecorder) Update ¶
func (mr *MockNetworkChangesStoreMockRecorder) Update(config interface{}) *gomock.Call
Update indicates an expected call of Update
func (*MockNetworkChangesStoreMockRecorder) Watch ¶
func (mr *MockNetworkChangesStoreMockRecorder) Watch(arg0 interface{}, arg1 ...interface{}) *gomock.Call
Watch indicates an expected call of Watch
type MockNetworkChangesWatchOption ¶
type MockNetworkChangesWatchOption struct {
// contains filtered or unexported fields
}
MockNetworkChangesWatchOption is a mock of WatchOption interface
func NewMockNetworkChangesWatchOption ¶
func NewMockNetworkChangesWatchOption(ctrl *gomock.Controller) *MockNetworkChangesWatchOption
NewMockNetworkChangesWatchOption creates a new mock instance
func (*MockNetworkChangesWatchOption) EXPECT ¶
func (m *MockNetworkChangesWatchOption) EXPECT() *MockNetworkChangesWatchOptionMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockNetworkChangesWatchOptionMockRecorder ¶
type MockNetworkChangesWatchOptionMockRecorder struct {
// contains filtered or unexported fields
}
MockNetworkChangesWatchOptionMockRecorder is the mock recorder for MockWatchOption
type MockNetworkSnapshotStore ¶
type MockNetworkSnapshotStore struct {
// contains filtered or unexported fields
}
MockNetworkSnapshotStore is a mock of Store interface
func NewMockNetworkSnapshotStore ¶
func NewMockNetworkSnapshotStore(ctrl *gomock.Controller) *MockNetworkSnapshotStore
NewMockNetworkSnapshotStore creates a new mock instance
func (*MockNetworkSnapshotStore) Close ¶
func (m *MockNetworkSnapshotStore) Close() error
Close mocks base method
func (*MockNetworkSnapshotStore) Create ¶
func (m *MockNetworkSnapshotStore) Create(snapshot *network.NetworkSnapshot) error
Create mocks base method
func (*MockNetworkSnapshotStore) Delete ¶
func (m *MockNetworkSnapshotStore) Delete(snapshot *network.NetworkSnapshot) error
Delete mocks base method
func (*MockNetworkSnapshotStore) EXPECT ¶
func (m *MockNetworkSnapshotStore) EXPECT() *MockNetworkSnapshotStoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockNetworkSnapshotStore) Get ¶
func (m *MockNetworkSnapshotStore) Get(id network.ID) (*network.NetworkSnapshot, error)
Get mocks base method
func (*MockNetworkSnapshotStore) GetByIndex ¶
func (m *MockNetworkSnapshotStore) GetByIndex(index network.Index) (*network.NetworkSnapshot, error)
GetByIndex mocks base method
func (*MockNetworkSnapshotStore) List ¶
func (m *MockNetworkSnapshotStore) List(arg0 chan<- *network.NetworkSnapshot) (stream.Context, error)
List mocks base method
func (*MockNetworkSnapshotStore) Update ¶
func (m *MockNetworkSnapshotStore) Update(snapshot *network.NetworkSnapshot) error
Update mocks base method
type MockNetworkSnapshotStoreMockRecorder ¶
type MockNetworkSnapshotStoreMockRecorder struct {
// contains filtered or unexported fields
}
MockNetworkSnapshotStoreMockRecorder is the mock recorder for MockStore
func (*MockNetworkSnapshotStoreMockRecorder) Close ¶
func (mr *MockNetworkSnapshotStoreMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close
func (*MockNetworkSnapshotStoreMockRecorder) Create ¶
func (mr *MockNetworkSnapshotStoreMockRecorder) Create(snapshot interface{}) *gomock.Call
Create indicates an expected call of Create
func (*MockNetworkSnapshotStoreMockRecorder) Delete ¶
func (mr *MockNetworkSnapshotStoreMockRecorder) Delete(snapshot interface{}) *gomock.Call
Delete indicates an expected call of Delete
func (*MockNetworkSnapshotStoreMockRecorder) Get ¶
func (mr *MockNetworkSnapshotStoreMockRecorder) Get(id interface{}) *gomock.Call
Get indicates an expected call of Get
func (*MockNetworkSnapshotStoreMockRecorder) GetByIndex ¶
func (mr *MockNetworkSnapshotStoreMockRecorder) GetByIndex(index interface{}) *gomock.Call
GetByIndex indicates an expected call of GetByIndex
func (*MockNetworkSnapshotStoreMockRecorder) List ¶
func (mr *MockNetworkSnapshotStoreMockRecorder) List(arg0 interface{}) *gomock.Call
List indicates an expected call of List
func (*MockNetworkSnapshotStoreMockRecorder) Update ¶
func (mr *MockNetworkSnapshotStoreMockRecorder) Update(snapshot interface{}) *gomock.Call
Update indicates an expected call of Update
func (*MockNetworkSnapshotStoreMockRecorder) Watch ¶
func (mr *MockNetworkSnapshotStoreMockRecorder) Watch(arg0 interface{}) *gomock.Call
Watch indicates an expected call of Watch
type MockStores ¶
type MockStores struct { DeviceStore *MockDeviceStore NetworkChangesStore networkchanges.Store DeviceChangesStore *MockDeviceChangesStore DeviceStateStore *MockDeviceStateStore NetworkSnapshotStore *MockNetworkSnapshotStore DeviceSnapshotStore devicesnap.Store }
MockStores is a struct to hold all of the mocked stores for a test