store

package
v0.10.12 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

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

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

EXPECT returns an object that allows the caller to indicate expected use

func (*MockDeviceChangesStore) Get

Get mocks base method

func (*MockDeviceChangesStore) List

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

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

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

EXPECT returns an object that allows the caller to indicate expected use

func (*MockDeviceSnapshotStore) Get

Get mocks base method

func (*MockDeviceSnapshotStore) List

List mocks base method

func (*MockDeviceSnapshotStore) Load

Load mocks base method

func (*MockDeviceSnapshotStore) LoadAll

func (m *MockDeviceSnapshotStore) LoadAll(ch chan<- *device0.Snapshot) (stream.Context, error)

LoadAll 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

func (*MockDeviceSnapshotStore) Watch

func (m *MockDeviceSnapshotStore) Watch(arg0 chan<- stream.Event) (stream.Context, error)

Watch mocks base method

func (*MockDeviceSnapshotStore) WatchAll

func (m *MockDeviceSnapshotStore) WatchAll(arg0 chan<- stream.Event) (stream.Context, error)

WatchAll mocks base method

type MockDeviceSnapshotStoreMockRecorder

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

MockDeviceSnapshotStoreMockRecorder is the mock recorder for MockDeviceSnapshotStore

func (*MockDeviceSnapshotStoreMockRecorder) Close

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

EXPECT returns an object that allows the caller to indicate expected use

func (*MockDeviceStateStore) Get

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

EXPECT returns an object that allows the caller to indicate expected use

func (*MockDeviceStore) Get

func (m *MockDeviceStore) Get(arg0 device.ID) (*device.Device, error)

Get mocks base method

func (*MockDeviceStore) List

func (m *MockDeviceStore) List(arg0 chan<- *device.Device) error

List mocks base method

func (*MockDeviceStore) Update

func (m *MockDeviceStore) Update(arg0 *device.Device) (*device.Device, error)

Update 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

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

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

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

Create mocks base method

func (*MockNetworkChangesStore) Delete

Delete mocks base method

func (*MockNetworkChangesStore) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockNetworkChangesStore) Get

Get mocks base method

func (*MockNetworkChangesStore) GetByIndex

GetByIndex mocks base method

func (*MockNetworkChangesStore) GetNext

GetNext mocks base method

func (*MockNetworkChangesStore) GetPrev

GetPrev mocks base method

func (*MockNetworkChangesStore) List

List mocks base method

func (*MockNetworkChangesStore) Update

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

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

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

Create mocks base method

func (*MockNetworkSnapshotStore) Delete

Delete mocks base method

func (*MockNetworkSnapshotStore) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockNetworkSnapshotStore) Get

Get mocks base method

func (*MockNetworkSnapshotStore) GetByIndex

GetByIndex mocks base method

func (*MockNetworkSnapshotStore) List

List mocks base method

func (*MockNetworkSnapshotStore) Update

Update mocks base method

func (*MockNetworkSnapshotStore) Watch

func (m *MockNetworkSnapshotStore) Watch(arg0 chan<- stream.Event) (stream.Context, error)

Watch mocks base method

type MockNetworkSnapshotStoreMockRecorder

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

MockNetworkSnapshotStoreMockRecorder is the mock recorder for MockStore

func (*MockNetworkSnapshotStoreMockRecorder) Close

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

Directories

Path Synopsis
Package device is a generated GoMock package.
Package device is a generated GoMock package.

Jump to

Keyboard shortcuts

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