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 context.Context, arg1 *string) (*provider.ModelBackendConfig, string, error)
- func (m *MockJujuAPIClient) GetContentInfo(arg0 context.Context, arg1 *secrets.URI, arg2 string, arg3, arg4 bool) (*secrets0.ContentParams, *provider.ModelBackendConfig, bool, error)
- func (m *MockJujuAPIClient) GetRevisionContentInfo(arg0 context.Context, arg1 *secrets.URI, arg2 int, arg3 bool) (*secrets0.ContentParams, *provider.ModelBackendConfig, bool, error)
- func (m *MockJujuAPIClient) GetSecretBackendConfig(arg0 context.Context, arg1 *string) (*provider.ModelBackendConfigInfo, error)
- type MockJujuAPIClientGetBackendConfigForDrainCall
- func (c *MockJujuAPIClientGetBackendConfigForDrainCall) Do(f func(context.Context, *string) (*provider.ModelBackendConfig, string, error)) *MockJujuAPIClientGetBackendConfigForDrainCall
- func (c *MockJujuAPIClientGetBackendConfigForDrainCall) DoAndReturn(f func(context.Context, *string) (*provider.ModelBackendConfig, string, error)) *MockJujuAPIClientGetBackendConfigForDrainCall
- func (c *MockJujuAPIClientGetBackendConfigForDrainCall) Return(arg0 *provider.ModelBackendConfig, arg1 string, arg2 error) *MockJujuAPIClientGetBackendConfigForDrainCall
- type MockJujuAPIClientGetContentInfoCall
- func (c *MockJujuAPIClientGetContentInfoCall) Do(...) *MockJujuAPIClientGetContentInfoCall
- func (c *MockJujuAPIClientGetContentInfoCall) DoAndReturn(...) *MockJujuAPIClientGetContentInfoCall
- func (c *MockJujuAPIClientGetContentInfoCall) Return(arg0 *secrets0.ContentParams, arg1 *provider.ModelBackendConfig, arg2 bool, ...) *MockJujuAPIClientGetContentInfoCall
- type MockJujuAPIClientGetRevisionContentInfoCall
- func (c *MockJujuAPIClientGetRevisionContentInfoCall) Do(...) *MockJujuAPIClientGetRevisionContentInfoCall
- func (c *MockJujuAPIClientGetRevisionContentInfoCall) DoAndReturn(...) *MockJujuAPIClientGetRevisionContentInfoCall
- func (c *MockJujuAPIClientGetRevisionContentInfoCall) Return(arg0 *secrets0.ContentParams, arg1 *provider.ModelBackendConfig, arg2 bool, ...) *MockJujuAPIClientGetRevisionContentInfoCall
- type MockJujuAPIClientGetSecretBackendConfigCall
- func (c *MockJujuAPIClientGetSecretBackendConfigCall) Do(f func(context.Context, *string) (*provider.ModelBackendConfigInfo, error)) *MockJujuAPIClientGetSecretBackendConfigCall
- func (c *MockJujuAPIClientGetSecretBackendConfigCall) DoAndReturn(f func(context.Context, *string) (*provider.ModelBackendConfigInfo, error)) *MockJujuAPIClientGetSecretBackendConfigCall
- func (c *MockJujuAPIClientGetSecretBackendConfigCall) Return(arg0 *provider.ModelBackendConfigInfo, arg1 error) *MockJujuAPIClientGetSecretBackendConfigCall
- type MockJujuAPIClientMockRecorder
- func (mr *MockJujuAPIClientMockRecorder) GetBackendConfigForDrain(arg0, arg1 any) *MockJujuAPIClientGetBackendConfigForDrainCall
- func (mr *MockJujuAPIClientMockRecorder) GetContentInfo(arg0, arg1, arg2, arg3, arg4 any) *MockJujuAPIClientGetContentInfoCall
- func (mr *MockJujuAPIClientMockRecorder) GetRevisionContentInfo(arg0, arg1, arg2, arg3 any) *MockJujuAPIClientGetRevisionContentInfoCall
- func (mr *MockJujuAPIClientMockRecorder) GetSecretBackendConfig(arg0, arg1 any) *MockJujuAPIClientGetSecretBackendConfigCall
- 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 MockSecretsBackendDeleteContentCall
- func (c *MockSecretsBackendDeleteContentCall) Do(f func(context.Context, string) error) *MockSecretsBackendDeleteContentCall
- func (c *MockSecretsBackendDeleteContentCall) DoAndReturn(f func(context.Context, string) error) *MockSecretsBackendDeleteContentCall
- func (c *MockSecretsBackendDeleteContentCall) Return(arg0 error) *MockSecretsBackendDeleteContentCall
- type MockSecretsBackendGetContentCall
- func (c *MockSecretsBackendGetContentCall) Do(f func(context.Context, string) (secrets.SecretValue, error)) *MockSecretsBackendGetContentCall
- func (c *MockSecretsBackendGetContentCall) DoAndReturn(f func(context.Context, string) (secrets.SecretValue, error)) *MockSecretsBackendGetContentCall
- func (c *MockSecretsBackendGetContentCall) Return(arg0 secrets.SecretValue, arg1 error) *MockSecretsBackendGetContentCall
- type MockSecretsBackendMockRecorder
- func (mr *MockSecretsBackendMockRecorder) DeleteContent(arg0, arg1 any) *MockSecretsBackendDeleteContentCall
- func (mr *MockSecretsBackendMockRecorder) GetContent(arg0, arg1 any) *MockSecretsBackendGetContentCall
- func (mr *MockSecretsBackendMockRecorder) Ping() *MockSecretsBackendPingCall
- func (mr *MockSecretsBackendMockRecorder) SaveContent(arg0, arg1, arg2, arg3 any) *MockSecretsBackendSaveContentCall
- type MockSecretsBackendPingCall
- type MockSecretsBackendSaveContentCall
- type MockSecretsState
- type MockSecretsStateGetSecretValueCall
- func (c *MockSecretsStateGetSecretValueCall) Do(f func(*secrets.URI, int) (secrets.SecretValue, *secrets.ValueRef, error)) *MockSecretsStateGetSecretValueCall
- func (c *MockSecretsStateGetSecretValueCall) DoAndReturn(f func(*secrets.URI, int) (secrets.SecretValue, *secrets.ValueRef, error)) *MockSecretsStateGetSecretValueCall
- func (c *MockSecretsStateGetSecretValueCall) Return(arg0 secrets.SecretValue, arg1 *secrets.ValueRef, arg2 error) *MockSecretsStateGetSecretValueCall
- 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 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 ¶
MockJujuAPIClientGetBackendConfigForDrainCall wrap *gomock.Call
func (*MockJujuAPIClientGetBackendConfigForDrainCall) Do ¶
func (c *MockJujuAPIClientGetBackendConfigForDrainCall) Do(f func(context.Context, *string) (*provider.ModelBackendConfig, string, error)) *MockJujuAPIClientGetBackendConfigForDrainCall
Do rewrite *gomock.Call.Do
func (*MockJujuAPIClientGetBackendConfigForDrainCall) DoAndReturn ¶
func (c *MockJujuAPIClientGetBackendConfigForDrainCall) DoAndReturn(f func(context.Context, *string) (*provider.ModelBackendConfig, string, error)) *MockJujuAPIClientGetBackendConfigForDrainCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockJujuAPIClientGetBackendConfigForDrainCall) Return ¶
func (c *MockJujuAPIClientGetBackendConfigForDrainCall) Return(arg0 *provider.ModelBackendConfig, arg1 string, arg2 error) *MockJujuAPIClientGetBackendConfigForDrainCall
Return rewrite *gomock.Call.Return
type MockJujuAPIClientGetContentInfoCall ¶
MockJujuAPIClientGetContentInfoCall wrap *gomock.Call
func (*MockJujuAPIClientGetContentInfoCall) Do ¶
func (c *MockJujuAPIClientGetContentInfoCall) Do(f func(context.Context, *secrets.URI, string, bool, bool) (*secrets0.ContentParams, *provider.ModelBackendConfig, bool, error)) *MockJujuAPIClientGetContentInfoCall
Do rewrite *gomock.Call.Do
func (*MockJujuAPIClientGetContentInfoCall) DoAndReturn ¶
func (c *MockJujuAPIClientGetContentInfoCall) DoAndReturn(f func(context.Context, *secrets.URI, string, bool, bool) (*secrets0.ContentParams, *provider.ModelBackendConfig, bool, error)) *MockJujuAPIClientGetContentInfoCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockJujuAPIClientGetContentInfoCall) Return ¶
func (c *MockJujuAPIClientGetContentInfoCall) Return(arg0 *secrets0.ContentParams, arg1 *provider.ModelBackendConfig, arg2 bool, arg3 error) *MockJujuAPIClientGetContentInfoCall
Return rewrite *gomock.Call.Return
type MockJujuAPIClientGetRevisionContentInfoCall ¶
MockJujuAPIClientGetRevisionContentInfoCall wrap *gomock.Call
func (*MockJujuAPIClientGetRevisionContentInfoCall) Do ¶
func (c *MockJujuAPIClientGetRevisionContentInfoCall) Do(f func(context.Context, *secrets.URI, int, bool) (*secrets0.ContentParams, *provider.ModelBackendConfig, bool, error)) *MockJujuAPIClientGetRevisionContentInfoCall
Do rewrite *gomock.Call.Do
func (*MockJujuAPIClientGetRevisionContentInfoCall) DoAndReturn ¶
func (c *MockJujuAPIClientGetRevisionContentInfoCall) DoAndReturn(f func(context.Context, *secrets.URI, int, bool) (*secrets0.ContentParams, *provider.ModelBackendConfig, bool, error)) *MockJujuAPIClientGetRevisionContentInfoCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockJujuAPIClientGetRevisionContentInfoCall) Return ¶
func (c *MockJujuAPIClientGetRevisionContentInfoCall) Return(arg0 *secrets0.ContentParams, arg1 *provider.ModelBackendConfig, arg2 bool, arg3 error) *MockJujuAPIClientGetRevisionContentInfoCall
Return rewrite *gomock.Call.Return
type MockJujuAPIClientGetSecretBackendConfigCall ¶
MockJujuAPIClientGetSecretBackendConfigCall wrap *gomock.Call
func (*MockJujuAPIClientGetSecretBackendConfigCall) Do ¶
func (c *MockJujuAPIClientGetSecretBackendConfigCall) Do(f func(context.Context, *string) (*provider.ModelBackendConfigInfo, error)) *MockJujuAPIClientGetSecretBackendConfigCall
Do rewrite *gomock.Call.Do
func (*MockJujuAPIClientGetSecretBackendConfigCall) DoAndReturn ¶
func (c *MockJujuAPIClientGetSecretBackendConfigCall) DoAndReturn(f func(context.Context, *string) (*provider.ModelBackendConfigInfo, error)) *MockJujuAPIClientGetSecretBackendConfigCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockJujuAPIClientGetSecretBackendConfigCall) Return ¶
func (c *MockJujuAPIClientGetSecretBackendConfigCall) Return(arg0 *provider.ModelBackendConfigInfo, arg1 error) *MockJujuAPIClientGetSecretBackendConfigCall
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 ¶
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 MockSecretsBackendDeleteContentCall ¶
MockSecretsBackendDeleteContentCall wrap *gomock.Call
func (*MockSecretsBackendDeleteContentCall) Do ¶
func (c *MockSecretsBackendDeleteContentCall) Do(f func(context.Context, string) error) *MockSecretsBackendDeleteContentCall
Do rewrite *gomock.Call.Do
func (*MockSecretsBackendDeleteContentCall) DoAndReturn ¶
func (c *MockSecretsBackendDeleteContentCall) DoAndReturn(f func(context.Context, string) error) *MockSecretsBackendDeleteContentCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockSecretsBackendDeleteContentCall) Return ¶
func (c *MockSecretsBackendDeleteContentCall) Return(arg0 error) *MockSecretsBackendDeleteContentCall
Return rewrite *gomock.Call.Return
type MockSecretsBackendGetContentCall ¶
MockSecretsBackendGetContentCall wrap *gomock.Call
func (*MockSecretsBackendGetContentCall) Do ¶
func (c *MockSecretsBackendGetContentCall) Do(f func(context.Context, string) (secrets.SecretValue, error)) *MockSecretsBackendGetContentCall
Do rewrite *gomock.Call.Do
func (*MockSecretsBackendGetContentCall) DoAndReturn ¶
func (c *MockSecretsBackendGetContentCall) DoAndReturn(f func(context.Context, string) (secrets.SecretValue, error)) *MockSecretsBackendGetContentCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockSecretsBackendGetContentCall) Return ¶
func (c *MockSecretsBackendGetContentCall) Return(arg0 secrets.SecretValue, arg1 error) *MockSecretsBackendGetContentCall
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 ¶
func (mr *MockSecretsBackendMockRecorder) DeleteContent(arg0, arg1 any) *MockSecretsBackendDeleteContentCall
DeleteContent indicates an expected call of DeleteContent.
func (*MockSecretsBackendMockRecorder) GetContent ¶
func (mr *MockSecretsBackendMockRecorder) GetContent(arg0, arg1 any) *MockSecretsBackendGetContentCall
GetContent indicates an expected call of GetContent.
func (*MockSecretsBackendMockRecorder) Ping ¶
func (mr *MockSecretsBackendMockRecorder) Ping() *MockSecretsBackendPingCall
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 ¶
MockSecretsBackendPingCall wrap *gomock.Call
func (*MockSecretsBackendPingCall) Do ¶
func (c *MockSecretsBackendPingCall) Do(f func() error) *MockSecretsBackendPingCall
Do rewrite *gomock.Call.Do
func (*MockSecretsBackendPingCall) DoAndReturn ¶
func (c *MockSecretsBackendPingCall) DoAndReturn(f func() error) *MockSecretsBackendPingCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockSecretsBackendPingCall) Return ¶
func (c *MockSecretsBackendPingCall) Return(arg0 error) *MockSecretsBackendPingCall
Return rewrite *gomock.Call.Return
type MockSecretsBackendSaveContentCall ¶
MockSecretsBackendSaveContentCall wrap *gomock.Call
func (*MockSecretsBackendSaveContentCall) Do ¶
func (c *MockSecretsBackendSaveContentCall) Do(f func(context.Context, *secrets.URI, int, secrets.SecretValue) (string, error)) *MockSecretsBackendSaveContentCall
Do rewrite *gomock.Call.Do
func (*MockSecretsBackendSaveContentCall) DoAndReturn ¶
func (c *MockSecretsBackendSaveContentCall) DoAndReturn(f func(context.Context, *secrets.URI, int, secrets.SecretValue) (string, error)) *MockSecretsBackendSaveContentCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockSecretsBackendSaveContentCall) Return ¶
func (c *MockSecretsBackendSaveContentCall) Return(arg0 string, arg1 error) *MockSecretsBackendSaveContentCall
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 ¶
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 MockSecretsStateGetSecretValueCall ¶
MockSecretsStateGetSecretValueCall wrap *gomock.Call
func (*MockSecretsStateGetSecretValueCall) Do ¶
func (c *MockSecretsStateGetSecretValueCall) Do(f func(*secrets.URI, int) (secrets.SecretValue, *secrets.ValueRef, error)) *MockSecretsStateGetSecretValueCall
Do rewrite *gomock.Call.Do
func (*MockSecretsStateGetSecretValueCall) DoAndReturn ¶
func (c *MockSecretsStateGetSecretValueCall) DoAndReturn(f func(*secrets.URI, int) (secrets.SecretValue, *secrets.ValueRef, error)) *MockSecretsStateGetSecretValueCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockSecretsStateGetSecretValueCall) Return ¶
func (c *MockSecretsStateGetSecretValueCall) Return(arg0 secrets.SecretValue, arg1 *secrets.ValueRef, arg2 error) *MockSecretsStateGetSecretValueCall
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 ¶
func (mr *MockSecretsStateMockRecorder) GetSecretValue(arg0, arg1 any) *MockSecretsStateGetSecretValueCall
GetSecretValue indicates an expected call of GetSecretValue.