Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockJujuAPIClient
- func (m *MockJujuAPIClient) EXPECT() *MockJujuAPIClientMockRecorder
- func (m *MockJujuAPIClient) GetBackendConfigForDrain(arg0 *string) (*provider.ModelBackendConfig, string, error)
- func (m *MockJujuAPIClient) GetContentInfo(arg0 *secrets.URI, arg1 string, arg2, arg3 bool) (*secrets0.ContentParams, *provider.ModelBackendConfig, bool, error)
- func (m *MockJujuAPIClient) GetRevisionContentInfo(arg0 *secrets.URI, arg1 int, arg2 bool) (*secrets0.ContentParams, *provider.ModelBackendConfig, bool, error)
- func (m *MockJujuAPIClient) GetSecretBackendConfig(arg0 *string) (*provider.ModelBackendConfigInfo, error)
- type MockJujuAPIClientMockRecorder
- func (mr *MockJujuAPIClientMockRecorder) GetBackendConfigForDrain(arg0 any) *gomock.Call
- func (mr *MockJujuAPIClientMockRecorder) GetContentInfo(arg0, arg1, arg2, arg3 any) *gomock.Call
- func (mr *MockJujuAPIClientMockRecorder) GetRevisionContentInfo(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockJujuAPIClientMockRecorder) GetSecretBackendConfig(arg0 any) *gomock.Call
- type MockSecretsBackend
- func (m *MockSecretsBackend) DeleteContent(arg0 context.Context, arg1 string) error
- func (m *MockSecretsBackend) EXPECT() *MockSecretsBackendMockRecorder
- func (m *MockSecretsBackend) GetContent(arg0 context.Context, arg1 string) (secrets.SecretValue, error)
- func (m *MockSecretsBackend) Ping() error
- func (m *MockSecretsBackend) SaveContent(arg0 context.Context, arg1 *secrets.URI, arg2 int, arg3 secrets.SecretValue) (string, error)
- type MockSecretsBackendMockRecorder
- func (mr *MockSecretsBackendMockRecorder) DeleteContent(arg0, arg1 any) *gomock.Call
- func (mr *MockSecretsBackendMockRecorder) GetContent(arg0, arg1 any) *gomock.Call
- func (mr *MockSecretsBackendMockRecorder) Ping() *gomock.Call
- func (mr *MockSecretsBackendMockRecorder) SaveContent(arg0, arg1, arg2, arg3 any) *gomock.Call
- type MockSecretsState
- type MockSecretsStateMockRecorder
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 ¶
func (m *MockJujuAPIClient) EXPECT() *MockJujuAPIClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockJujuAPIClient) GetBackendConfigForDrain ¶
func (m *MockJujuAPIClient) GetBackendConfigForDrain(arg0 *string) (*provider.ModelBackendConfig, string, error)
GetBackendConfigForDrain mocks base method.
func (*MockJujuAPIClient) GetContentInfo ¶
func (m *MockJujuAPIClient) GetContentInfo(arg0 *secrets.URI, arg1 string, arg2, arg3 bool) (*secrets0.ContentParams, *provider.ModelBackendConfig, bool, error)
GetContentInfo mocks base method.
func (*MockJujuAPIClient) GetRevisionContentInfo ¶
func (m *MockJujuAPIClient) GetRevisionContentInfo(arg0 *secrets.URI, arg1 int, arg2 bool) (*secrets0.ContentParams, *provider.ModelBackendConfig, bool, error)
GetRevisionContentInfo mocks base method.
func (*MockJujuAPIClient) GetSecretBackendConfig ¶
func (m *MockJujuAPIClient) GetSecretBackendConfig(arg0 *string) (*provider.ModelBackendConfigInfo, error)
GetSecretBackendConfig mocks base method.
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 any) *gomock.Call
GetBackendConfigForDrain indicates an expected call of GetBackendConfigForDrain.
func (*MockJujuAPIClientMockRecorder) GetContentInfo ¶
func (mr *MockJujuAPIClientMockRecorder) GetContentInfo(arg0, arg1, arg2, arg3 any) *gomock.Call
GetContentInfo indicates an expected call of GetContentInfo.
func (*MockJujuAPIClientMockRecorder) GetRevisionContentInfo ¶
func (mr *MockJujuAPIClientMockRecorder) GetRevisionContentInfo(arg0, arg1, arg2 any) *gomock.Call
GetRevisionContentInfo indicates an expected call of GetRevisionContentInfo.
func (*MockJujuAPIClientMockRecorder) GetSecretBackendConfig ¶
func (mr *MockJujuAPIClientMockRecorder) GetSecretBackendConfig(arg0 any) *gomock.Call
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 ¶
func (m *MockSecretsBackend) EXPECT() *MockSecretsBackendMockRecorder
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) SaveContent ¶
func (m *MockSecretsBackend) SaveContent(arg0 context.Context, arg1 *secrets.URI, arg2 int, arg3 secrets.SecretValue) (string, error)
SaveContent mocks base method.
type MockSecretsBackendMockRecorder ¶
type MockSecretsBackendMockRecorder struct {
// contains filtered or unexported fields
}
MockSecretsBackendMockRecorder is the mock recorder for MockSecretsBackend.
func (*MockSecretsBackendMockRecorder) DeleteContent ¶
func (mr *MockSecretsBackendMockRecorder) DeleteContent(arg0, arg1 any) *gomock.Call
DeleteContent indicates an expected call of DeleteContent.
func (*MockSecretsBackendMockRecorder) GetContent ¶
func (mr *MockSecretsBackendMockRecorder) GetContent(arg0, arg1 any) *gomock.Call
GetContent indicates an expected call of GetContent.
func (*MockSecretsBackendMockRecorder) Ping ¶
func (mr *MockSecretsBackendMockRecorder) Ping() *gomock.Call
Ping indicates an expected call of Ping.
func (*MockSecretsBackendMockRecorder) SaveContent ¶
func (mr *MockSecretsBackendMockRecorder) SaveContent(arg0, arg1, arg2, arg3 any) *gomock.Call
SaveContent indicates an expected call of SaveContent.
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 ¶
func (m *MockSecretsState) EXPECT() *MockSecretsStateMockRecorder
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 MockSecretsStateMockRecorder ¶
type MockSecretsStateMockRecorder struct {
// contains filtered or unexported fields
}
MockSecretsStateMockRecorder is the mock recorder for MockSecretsState.
func (*MockSecretsStateMockRecorder) GetSecretValue ¶
func (mr *MockSecretsStateMockRecorder) GetSecretValue(arg0, arg1 any) *gomock.Call
GetSecretValue indicates an expected call of GetSecretValue.