Help us shape the future of Go! Take the 2026 Go Developer Survey

networkmock

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package networkmock is a generated GoMock package.

Index

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

Create mocks base method.

func (*MockRepository) Deactivate added in v0.4.5

func (m *MockRepository) Deactivate(ctx context.Context, network types.Network) error

Deactivate mocks base method.

func (*MockRepository) Delete

Delete mocks base method.

func (*MockRepository) EXPECT

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

func (*MockRepository) Ensure

func (m *MockRepository) Ensure(ctx context.Context, network types.Network) error

Ensure mocks base method.

func (*MockRepository) Exists

func (m *MockRepository) Exists(ctx context.Context, id string) (types.Network, bool, error)

Exists mocks base method.

func (*MockRepository) List

func (m *MockRepository) List(ctx context.Context) ([]types.Network, error)

List mocks base method.

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.

func (*MockRepositoryMockRecorder) Exists

func (mr *MockRepositoryMockRecorder) Exists(ctx, id any) *gomock.Call

Exists indicates an expected call of Exists.

func (*MockRepositoryMockRecorder) List

func (mr *MockRepositoryMockRecorder) List(ctx any) *gomock.Call

List indicates an expected call of List.

Jump to

Keyboard shortcuts

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