mocks

package
v0.0.0-...-56cb166 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2025 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockJujuAPIClient

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

MockJujuAPIClient is a mock of JujuAPIClient interface.

func NewMockJujuAPIClient

func NewMockJujuAPIClient(ctrl *gomock.Controller) *MockJujuAPIClient

NewMockJujuAPIClient creates a new mock instance.

func (*MockJujuAPIClient) EXPECT

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

func (*MockJujuAPIClient) GetBackendConfigForDrain

func (m *MockJujuAPIClient) GetBackendConfigForDrain(arg0 context.Context, arg1 *string) (*provider.ModelBackendConfig, string, error)

GetBackendConfigForDrain mocks base method.

func (*MockJujuAPIClient) GetContentInfo

func (m *MockJujuAPIClient) GetContentInfo(arg0 context.Context, arg1 *secrets.URI, arg2 string, arg3, arg4 bool) (*secrets0.ContentParams, *provider.ModelBackendConfig, bool, error)

GetContentInfo mocks base method.

func (*MockJujuAPIClient) GetRevisionContentInfo

func (m *MockJujuAPIClient) GetRevisionContentInfo(arg0 context.Context, arg1 *secrets.URI, arg2 int, arg3 bool) (*secrets0.ContentParams, *provider.ModelBackendConfig, bool, error)

GetRevisionContentInfo mocks base method.

func (*MockJujuAPIClient) GetSecretBackendConfig

func (m *MockJujuAPIClient) GetSecretBackendConfig(arg0 context.Context, arg1 *string) (*provider.ModelBackendConfigInfo, error)

GetSecretBackendConfig mocks base method.

type MockJujuAPIClientGetBackendConfigForDrainCall

type MockJujuAPIClientGetBackendConfigForDrainCall struct {
	*gomock.Call
}

MockJujuAPIClientGetBackendConfigForDrainCall wrap *gomock.Call

func (*MockJujuAPIClientGetBackendConfigForDrainCall) Do

Do rewrite *gomock.Call.Do

func (*MockJujuAPIClientGetBackendConfigForDrainCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockJujuAPIClientGetBackendConfigForDrainCall) Return

Return rewrite *gomock.Call.Return

type MockJujuAPIClientGetContentInfoCall

type MockJujuAPIClientGetContentInfoCall struct {
	*gomock.Call
}

MockJujuAPIClientGetContentInfoCall wrap *gomock.Call

func (*MockJujuAPIClientGetContentInfoCall) Do

Do rewrite *gomock.Call.Do

func (*MockJujuAPIClientGetContentInfoCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockJujuAPIClientGetContentInfoCall) Return

Return rewrite *gomock.Call.Return

type MockJujuAPIClientGetRevisionContentInfoCall

type MockJujuAPIClientGetRevisionContentInfoCall struct {
	*gomock.Call
}

MockJujuAPIClientGetRevisionContentInfoCall wrap *gomock.Call

func (*MockJujuAPIClientGetRevisionContentInfoCall) Do

Do rewrite *gomock.Call.Do

func (*MockJujuAPIClientGetRevisionContentInfoCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockJujuAPIClientGetRevisionContentInfoCall) Return

Return rewrite *gomock.Call.Return

type MockJujuAPIClientGetSecretBackendConfigCall

type MockJujuAPIClientGetSecretBackendConfigCall struct {
	*gomock.Call
}

MockJujuAPIClientGetSecretBackendConfigCall wrap *gomock.Call

func (*MockJujuAPIClientGetSecretBackendConfigCall) Do

Do rewrite *gomock.Call.Do

func (*MockJujuAPIClientGetSecretBackendConfigCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockJujuAPIClientGetSecretBackendConfigCall) Return

Return rewrite *gomock.Call.Return

type MockJujuAPIClientMockRecorder

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

MockJujuAPIClientMockRecorder is the mock recorder for MockJujuAPIClient.

func (*MockJujuAPIClientMockRecorder) GetBackendConfigForDrain

func (mr *MockJujuAPIClientMockRecorder) GetBackendConfigForDrain(arg0, arg1 any) *MockJujuAPIClientGetBackendConfigForDrainCall

GetBackendConfigForDrain indicates an expected call of GetBackendConfigForDrain.

func (*MockJujuAPIClientMockRecorder) GetContentInfo

func (mr *MockJujuAPIClientMockRecorder) GetContentInfo(arg0, arg1, arg2, arg3, arg4 any) *MockJujuAPIClientGetContentInfoCall

GetContentInfo indicates an expected call of GetContentInfo.

func (*MockJujuAPIClientMockRecorder) GetRevisionContentInfo

func (mr *MockJujuAPIClientMockRecorder) GetRevisionContentInfo(arg0, arg1, arg2, arg3 any) *MockJujuAPIClientGetRevisionContentInfoCall

GetRevisionContentInfo indicates an expected call of GetRevisionContentInfo.

func (*MockJujuAPIClientMockRecorder) GetSecretBackendConfig

func (mr *MockJujuAPIClientMockRecorder) GetSecretBackendConfig(arg0, arg1 any) *MockJujuAPIClientGetSecretBackendConfigCall

GetSecretBackendConfig indicates an expected call of GetSecretBackendConfig.

type MockSecretsBackend

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

MockSecretsBackend is a mock of SecretsBackend interface.

func NewMockSecretsBackend

func NewMockSecretsBackend(ctrl *gomock.Controller) *MockSecretsBackend

NewMockSecretsBackend creates a new mock instance.

func (*MockSecretsBackend) DeleteContent

func (m *MockSecretsBackend) DeleteContent(arg0 context.Context, arg1 string) error

DeleteContent mocks base method.

func (*MockSecretsBackend) EXPECT

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

func (*MockSecretsBackend) GetContent

func (m *MockSecretsBackend) GetContent(arg0 context.Context, arg1 string) (secrets.SecretValue, error)

GetContent mocks base method.

func (*MockSecretsBackend) Ping

func (m *MockSecretsBackend) Ping() error

Ping mocks base method.

func (*MockSecretsBackend) SaveContent

func (m *MockSecretsBackend) SaveContent(arg0 context.Context, arg1 *secrets.URI, arg2 int, arg3 secrets.SecretValue) (string, error)

SaveContent mocks base method.

type MockSecretsBackendDeleteContentCall

type MockSecretsBackendDeleteContentCall struct {
	*gomock.Call
}

MockSecretsBackendDeleteContentCall wrap *gomock.Call

func (*MockSecretsBackendDeleteContentCall) Do

Do rewrite *gomock.Call.Do

func (*MockSecretsBackendDeleteContentCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockSecretsBackendDeleteContentCall) Return

Return rewrite *gomock.Call.Return

type MockSecretsBackendGetContentCall

type MockSecretsBackendGetContentCall struct {
	*gomock.Call
}

MockSecretsBackendGetContentCall wrap *gomock.Call

func (*MockSecretsBackendGetContentCall) Do

Do rewrite *gomock.Call.Do

func (*MockSecretsBackendGetContentCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockSecretsBackendGetContentCall) Return

Return rewrite *gomock.Call.Return

type MockSecretsBackendMockRecorder

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

MockSecretsBackendMockRecorder is the mock recorder for MockSecretsBackend.

func (*MockSecretsBackendMockRecorder) DeleteContent

DeleteContent indicates an expected call of DeleteContent.

func (*MockSecretsBackendMockRecorder) GetContent

GetContent indicates an expected call of GetContent.

func (*MockSecretsBackendMockRecorder) Ping

Ping indicates an expected call of Ping.

func (*MockSecretsBackendMockRecorder) SaveContent

func (mr *MockSecretsBackendMockRecorder) SaveContent(arg0, arg1, arg2, arg3 any) *MockSecretsBackendSaveContentCall

SaveContent indicates an expected call of SaveContent.

type MockSecretsBackendPingCall

type MockSecretsBackendPingCall struct {
	*gomock.Call
}

MockSecretsBackendPingCall wrap *gomock.Call

func (*MockSecretsBackendPingCall) Do

Do rewrite *gomock.Call.Do

func (*MockSecretsBackendPingCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockSecretsBackendPingCall) Return

Return rewrite *gomock.Call.Return

type MockSecretsBackendSaveContentCall

type MockSecretsBackendSaveContentCall struct {
	*gomock.Call
}

MockSecretsBackendSaveContentCall wrap *gomock.Call

func (*MockSecretsBackendSaveContentCall) Do

Do rewrite *gomock.Call.Do

func (*MockSecretsBackendSaveContentCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockSecretsBackendSaveContentCall) Return

Return rewrite *gomock.Call.Return

type MockSecretsState

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

MockSecretsState is a mock of SecretsState interface.

func NewMockSecretsState

func NewMockSecretsState(ctrl *gomock.Controller) *MockSecretsState

NewMockSecretsState creates a new mock instance.

func (*MockSecretsState) EXPECT

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

func (*MockSecretsState) GetSecretValue

func (m *MockSecretsState) GetSecretValue(arg0 *secrets.URI, arg1 int) (secrets.SecretValue, *secrets.ValueRef, error)

GetSecretValue mocks base method.

type MockSecretsStateGetSecretValueCall

type MockSecretsStateGetSecretValueCall struct {
	*gomock.Call
}

MockSecretsStateGetSecretValueCall wrap *gomock.Call

func (*MockSecretsStateGetSecretValueCall) Do

Do rewrite *gomock.Call.Do

func (*MockSecretsStateGetSecretValueCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockSecretsStateGetSecretValueCall) Return

Return rewrite *gomock.Call.Return

type MockSecretsStateMockRecorder

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

MockSecretsStateMockRecorder is the mock recorder for MockSecretsState.

func (*MockSecretsStateMockRecorder) GetSecretValue

GetSecretValue indicates an expected call of GetSecretValue.

Jump to

Keyboard shortcuts

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