Documentation
¶
Overview ¶
Package mock_storage is a generated GoMock package.
Index ¶
- type MockHost
- type MockHostMockRecorder
- type MockNetwork
- func (m *MockNetwork) Add(ctx context.Context, network *entity.Network) (*entity.Network, error)
- func (m *MockNetwork) Delete(ctx context.Context, id uint64) error
- func (m *MockNetwork) EXPECT() *MockNetworkMockRecorder
- func (m *MockNetwork) Get(ctx context.Context, id uint64) (*entity.Network, error)
- func (m *MockNetwork) List(ctx context.Context, filter *entity.ListNetworkFilter) ([]*entity.Network, error)
- type MockNetworkHost
- func (m *MockNetworkHost) Add(ctx context.Context, networkHost *entity.NetworkHost) (*entity.NetworkHost, error)
- func (m *MockNetworkHost) Delete(ctx context.Context, id uint64) error
- func (m *MockNetworkHost) EXPECT() *MockNetworkHostMockRecorder
- func (m *MockNetworkHost) Get(ctx context.Context, id uint64) (*entity.NetworkHost, error)
- func (m *MockNetworkHost) List(ctx context.Context, filter *entity.ListNetworkHostFilter) ([]*entity.NetworkHost, error)
- type MockNetworkHostMockRecorder
- type MockNetworkHostSetup
- type MockNetworkHostSetupMockRecorder
- type MockNetworkMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockHost ¶
type MockHost struct {
// contains filtered or unexported fields
}
MockHost is a mock of Host interface.
func NewMockHost ¶
func NewMockHost(ctrl *gomock.Controller) *MockHost
NewMockHost creates a new mock instance.
func (*MockHost) EXPECT ¶
func (m *MockHost) EXPECT() *MockHostMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockHostMockRecorder ¶
type MockHostMockRecorder struct {
// contains filtered or unexported fields
}
MockHostMockRecorder is the mock recorder for MockHost.
func (*MockHostMockRecorder) Add ¶
func (mr *MockHostMockRecorder) Add(ctx, host any) *gomock.Call
Add indicates an expected call of Add.
type MockNetwork ¶
type MockNetwork struct {
// contains filtered or unexported fields
}
MockNetwork is a mock of Network interface.
func NewMockNetwork ¶
func NewMockNetwork(ctrl *gomock.Controller) *MockNetwork
NewMockNetwork creates a new mock instance.
func (*MockNetwork) Delete ¶
func (m *MockNetwork) Delete(ctx context.Context, id uint64) error
Delete mocks base method.
func (*MockNetwork) EXPECT ¶
func (m *MockNetwork) EXPECT() *MockNetworkMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockNetwork) List ¶
func (m *MockNetwork) List(ctx context.Context, filter *entity.ListNetworkFilter) ([]*entity.Network, error)
List mocks base method.
type MockNetworkHost ¶
type MockNetworkHost struct {
// contains filtered or unexported fields
}
MockNetworkHost is a mock of NetworkHost interface.
func NewMockNetworkHost ¶
func NewMockNetworkHost(ctrl *gomock.Controller) *MockNetworkHost
NewMockNetworkHost creates a new mock instance.
func (*MockNetworkHost) Add ¶
func (m *MockNetworkHost) Add(ctx context.Context, networkHost *entity.NetworkHost) (*entity.NetworkHost, error)
Add mocks base method.
func (*MockNetworkHost) Delete ¶
func (m *MockNetworkHost) Delete(ctx context.Context, id uint64) error
Delete mocks base method.
func (*MockNetworkHost) EXPECT ¶
func (m *MockNetworkHost) EXPECT() *MockNetworkHostMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockNetworkHost) Get ¶
func (m *MockNetworkHost) Get(ctx context.Context, id uint64) (*entity.NetworkHost, error)
Get mocks base method.
func (*MockNetworkHost) List ¶
func (m *MockNetworkHost) List(ctx context.Context, filter *entity.ListNetworkHostFilter) ([]*entity.NetworkHost, error)
List mocks base method.
type MockNetworkHostMockRecorder ¶
type MockNetworkHostMockRecorder struct {
// contains filtered or unexported fields
}
MockNetworkHostMockRecorder is the mock recorder for MockNetworkHost.
func (*MockNetworkHostMockRecorder) Add ¶
func (mr *MockNetworkHostMockRecorder) Add(ctx, networkHost any) *gomock.Call
Add indicates an expected call of Add.
func (*MockNetworkHostMockRecorder) Delete ¶
func (mr *MockNetworkHostMockRecorder) Delete(ctx, id any) *gomock.Call
Delete indicates an expected call of Delete.
type MockNetworkHostSetup ¶
type MockNetworkHostSetup struct {
// contains filtered or unexported fields
}
MockNetworkHostSetup is a mock of NetworkHostSetup interface.
func NewMockNetworkHostSetup ¶
func NewMockNetworkHostSetup(ctrl *gomock.Controller) *MockNetworkHostSetup
NewMockNetworkHostSetup creates a new mock instance.
func (*MockNetworkHostSetup) AddBatch ¶
func (m *MockNetworkHostSetup) AddBatch(ctx context.Context, batch []*entity.NetworkHostSetup) error
AddBatch mocks base method.
func (*MockNetworkHostSetup) DeleteBatchByNetworkHostIDs ¶
func (m *MockNetworkHostSetup) DeleteBatchByNetworkHostIDs(ctx context.Context, networkHostIDs []uint64) error
DeleteBatchByNetworkHostIDs mocks base method.
func (*MockNetworkHostSetup) EXPECT ¶
func (m *MockNetworkHostSetup) EXPECT() *MockNetworkHostSetupMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockNetworkHostSetupMockRecorder ¶
type MockNetworkHostSetupMockRecorder struct {
// contains filtered or unexported fields
}
MockNetworkHostSetupMockRecorder is the mock recorder for MockNetworkHostSetup.
func (*MockNetworkHostSetupMockRecorder) AddBatch ¶
func (mr *MockNetworkHostSetupMockRecorder) AddBatch(ctx, batch any) *gomock.Call
AddBatch indicates an expected call of AddBatch.
func (*MockNetworkHostSetupMockRecorder) DeleteBatchByNetworkHostIDs ¶
func (mr *MockNetworkHostSetupMockRecorder) DeleteBatchByNetworkHostIDs(ctx, networkHostIDs any) *gomock.Call
DeleteBatchByNetworkHostIDs indicates an expected call of DeleteBatchByNetworkHostIDs.
type MockNetworkMockRecorder ¶
type MockNetworkMockRecorder struct {
// contains filtered or unexported fields
}
MockNetworkMockRecorder is the mock recorder for MockNetwork.
func (*MockNetworkMockRecorder) Add ¶
func (mr *MockNetworkMockRecorder) Add(ctx, network any) *gomock.Call
Add indicates an expected call of Add.
func (*MockNetworkMockRecorder) Delete ¶
func (mr *MockNetworkMockRecorder) Delete(ctx, id any) *gomock.Call
Delete indicates an expected call of Delete.