Documentation
¶
Overview ¶
Package networkmock is a generated GoMock package.
Index ¶
- type MockRepository
- func (m *MockRepository) Create(ctx context.Context, arg1 params.NetworkCreate) (types.Network, error)
- func (m *MockRepository) Deactivate(ctx context.Context, network types.Network) error
- func (m *MockRepository) Delete(ctx context.Context, network types.Network, a ipallocator.IPAllocator) error
- func (m *MockRepository) EXPECT() *MockRepositoryMockRecorder
- func (m *MockRepository) Ensure(ctx context.Context, network types.Network) error
- func (m *MockRepository) Exists(ctx context.Context, id string) (types.Network, bool, error)
- func (m *MockRepository) List(ctx context.Context) ([]types.Network, error)
- type MockRepositoryMockRecorder
- func (mr *MockRepositoryMockRecorder) Create(ctx, arg1 any) *gomock.Call
- func (mr *MockRepositoryMockRecorder) Deactivate(ctx, network any) *gomock.Call
- func (mr *MockRepositoryMockRecorder) Delete(ctx, network, a any) *gomock.Call
- func (mr *MockRepositoryMockRecorder) Ensure(ctx, network any) *gomock.Call
- func (mr *MockRepositoryMockRecorder) Exists(ctx, id any) *gomock.Call
- func (mr *MockRepositoryMockRecorder) List(ctx any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockRepository ¶
type MockRepository struct {
// contains filtered or unexported fields
}
MockRepository is a mock of Repository interface.
func NewMockRepository ¶
func NewMockRepository(ctrl *gomock.Controller) *MockRepository
NewMockRepository creates a new mock instance.
func (*MockRepository) Create ¶
func (m *MockRepository) Create(ctx context.Context, arg1 params.NetworkCreate) (types.Network, error)
Create mocks base method.
func (*MockRepository) Deactivate ¶ added in v0.4.5
Deactivate mocks base method.
func (*MockRepository) Delete ¶
func (m *MockRepository) Delete(ctx context.Context, network types.Network, a ipallocator.IPAllocator) error
Delete mocks base method.
func (*MockRepository) EXPECT ¶
func (m *MockRepository) EXPECT() *MockRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockRepositoryMockRecorder ¶
type MockRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockRepositoryMockRecorder is the mock recorder for MockRepository.
func (*MockRepositoryMockRecorder) Create ¶
func (mr *MockRepositoryMockRecorder) Create(ctx, arg1 any) *gomock.Call
Create indicates an expected call of Create.
func (*MockRepositoryMockRecorder) Deactivate ¶ added in v0.4.5
func (mr *MockRepositoryMockRecorder) Deactivate(ctx, network any) *gomock.Call
Deactivate indicates an expected call of Deactivate.
func (*MockRepositoryMockRecorder) Delete ¶
func (mr *MockRepositoryMockRecorder) Delete(ctx, network, a any) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockRepositoryMockRecorder) Ensure ¶
func (mr *MockRepositoryMockRecorder) Ensure(ctx, network any) *gomock.Call
Ensure indicates an expected call of Ensure.
Click to show internal directories.
Click to hide internal directories.