apimock

package
v3.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package apimock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockClient

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

MockClient is a mock of Client interface.

func NewMockClient

func NewMockClient(ctrl *gomock.Controller) *MockClient

NewMockClient creates a new mock instance.

func (*MockClient) AddEndpoint

func (m *MockClient) AddEndpoint(ctx context.Context, params api.AddEndpointParams) (api.Endpoint, error)

AddEndpoint mocks base method.

func (*MockClient) EXPECT

func (m *MockClient) EXPECT() *MockClientMockRecorder

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

func (*MockClient) Failover

func (m *MockClient) Failover(ctx context.Context, id string) error

Failover mocks base method.

func (*MockClient) GetEndpoint

func (m *MockClient) GetEndpoint(ctx context.Context, id string) (api.Endpoint, error)

GetEndpoint mocks base method.

func (*MockClient) GetEndpointHosts

func (m *MockClient) GetEndpointHosts(ctx context.Context, id string) ([]api.Host, error)

GetEndpointHosts mocks base method.

func (*MockClient) ListEndpoints

func (m *MockClient) ListEndpoints(ctx context.Context) ([]api.Endpoint, error)

ListEndpoints mocks base method.

func (*MockClient) RemoveEndpoint

func (m *MockClient) RemoveEndpoint(ctx context.Context, id string) error

RemoveEndpoint mocks base method.

func (*MockClient) RotateEncryptionKey added in v3.1.0

func (m *MockClient) RotateEncryptionKey(ctx context.Context) error

RotateEncryptionKey mocks base method.

func (*MockClient) UpdateEndpoint

func (m *MockClient) UpdateEndpoint(ctx context.Context, id string, params api.UpdateEndpointParams) (api.Endpoint, error)

UpdateEndpoint mocks base method.

func (*MockClient) Version

func (m *MockClient) Version(ctx context.Context) (string, error)

Version mocks base method.

type MockClientMockRecorder

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

MockClientMockRecorder is the mock recorder for MockClient.

func (*MockClientMockRecorder) AddEndpoint

func (mr *MockClientMockRecorder) AddEndpoint(ctx, params any) *gomock.Call

AddEndpoint indicates an expected call of AddEndpoint.

func (*MockClientMockRecorder) Failover

func (mr *MockClientMockRecorder) Failover(ctx, id any) *gomock.Call

Failover indicates an expected call of Failover.

func (*MockClientMockRecorder) GetEndpoint

func (mr *MockClientMockRecorder) GetEndpoint(ctx, id any) *gomock.Call

GetEndpoint indicates an expected call of GetEndpoint.

func (*MockClientMockRecorder) GetEndpointHosts

func (mr *MockClientMockRecorder) GetEndpointHosts(ctx, id any) *gomock.Call

GetEndpointHosts indicates an expected call of GetEndpointHosts.

func (*MockClientMockRecorder) ListEndpoints

func (mr *MockClientMockRecorder) ListEndpoints(ctx any) *gomock.Call

ListEndpoints indicates an expected call of ListEndpoints.

func (*MockClientMockRecorder) RemoveEndpoint

func (mr *MockClientMockRecorder) RemoveEndpoint(ctx, id any) *gomock.Call

RemoveEndpoint indicates an expected call of RemoveEndpoint.

func (*MockClientMockRecorder) RotateEncryptionKey added in v3.1.0

func (mr *MockClientMockRecorder) RotateEncryptionKey(ctx any) *gomock.Call

RotateEncryptionKey indicates an expected call of RotateEncryptionKey.

func (*MockClientMockRecorder) UpdateEndpoint

func (mr *MockClientMockRecorder) UpdateEndpoint(ctx, id, params any) *gomock.Call

UpdateEndpoint indicates an expected call of UpdateEndpoint.

func (*MockClientMockRecorder) Version

func (mr *MockClientMockRecorder) Version(ctx any) *gomock.Call

Version indicates an expected call of Version.

Jump to

Keyboard shortcuts

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