Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockSecretBackendService
- func (m *MockSecretBackendService) BackendConfigInfo(arg0 context.Context, arg1 service0.BackendConfigParams) (*provider.ModelBackendConfigInfo, error)
- func (m *MockSecretBackendService) DrainBackendConfigInfo(arg0 context.Context, arg1 service0.DrainBackendConfigParams) (*provider.ModelBackendConfigInfo, error)
- func (m *MockSecretBackendService) EXPECT() *MockSecretBackendServiceMockRecorder
- type MockSecretBackendServiceBackendConfigInfoCall
- func (c *MockSecretBackendServiceBackendConfigInfoCall) Do(...) *MockSecretBackendServiceBackendConfigInfoCall
- func (c *MockSecretBackendServiceBackendConfigInfoCall) DoAndReturn(...) *MockSecretBackendServiceBackendConfigInfoCall
- func (c *MockSecretBackendServiceBackendConfigInfoCall) Return(arg0 *provider.ModelBackendConfigInfo, arg1 error) *MockSecretBackendServiceBackendConfigInfoCall
- type MockSecretBackendServiceDrainBackendConfigInfoCall
- func (c *MockSecretBackendServiceDrainBackendConfigInfoCall) Do(...) *MockSecretBackendServiceDrainBackendConfigInfoCall
- func (c *MockSecretBackendServiceDrainBackendConfigInfoCall) DoAndReturn(...) *MockSecretBackendServiceDrainBackendConfigInfoCall
- func (c *MockSecretBackendServiceDrainBackendConfigInfoCall) Return(arg0 *provider.ModelBackendConfigInfo, arg1 error) *MockSecretBackendServiceDrainBackendConfigInfoCall
- type MockSecretBackendServiceMockRecorder
- type MockSecretService
- func (m *MockSecretService) EXPECT() *MockSecretServiceMockRecorder
- func (m *MockSecretService) GetSecret(arg0 context.Context, arg1 *secrets.URI) (*secrets.SecretMetadata, error)
- func (m *MockSecretService) GetSecretValue(arg0 context.Context, arg1 *secrets.URI, arg2 int, arg3 service.SecretAccessor) (secrets.SecretValue, *secrets.ValueRef, error)
- func (m *MockSecretService) ListGrantedSecretsForBackend(arg0 context.Context, arg1 string, arg2 secrets.SecretRole, ...) ([]*secrets.SecretRevisionRef, error)
- type MockSecretServiceGetSecretCall
- func (c *MockSecretServiceGetSecretCall) Do(f func(context.Context, *secrets.URI) (*secrets.SecretMetadata, error)) *MockSecretServiceGetSecretCall
- func (c *MockSecretServiceGetSecretCall) DoAndReturn(f func(context.Context, *secrets.URI) (*secrets.SecretMetadata, error)) *MockSecretServiceGetSecretCall
- func (c *MockSecretServiceGetSecretCall) Return(arg0 *secrets.SecretMetadata, arg1 error) *MockSecretServiceGetSecretCall
- type MockSecretServiceGetSecretValueCall
- func (c *MockSecretServiceGetSecretValueCall) Do(...) *MockSecretServiceGetSecretValueCall
- func (c *MockSecretServiceGetSecretValueCall) DoAndReturn(...) *MockSecretServiceGetSecretValueCall
- func (c *MockSecretServiceGetSecretValueCall) Return(arg0 secrets.SecretValue, arg1 *secrets.ValueRef, arg2 error) *MockSecretServiceGetSecretValueCall
- type MockSecretServiceListGrantedSecretsForBackendCall
- func (c *MockSecretServiceListGrantedSecretsForBackendCall) Do(...) *MockSecretServiceListGrantedSecretsForBackendCall
- func (c *MockSecretServiceListGrantedSecretsForBackendCall) DoAndReturn(...) *MockSecretServiceListGrantedSecretsForBackendCall
- func (c *MockSecretServiceListGrantedSecretsForBackendCall) Return(arg0 []*secrets.SecretRevisionRef, arg1 error) *MockSecretServiceListGrantedSecretsForBackendCall
- type MockSecretServiceMockRecorder
- func (mr *MockSecretServiceMockRecorder) GetSecret(arg0, arg1 any) *MockSecretServiceGetSecretCall
- func (mr *MockSecretServiceMockRecorder) GetSecretValue(arg0, arg1, arg2, arg3 any) *MockSecretServiceGetSecretValueCall
- func (mr *MockSecretServiceMockRecorder) ListGrantedSecretsForBackend(arg0, arg1, arg2 any, arg3 ...any) *MockSecretServiceListGrantedSecretsForBackendCall
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockSecretBackendService ¶
type MockSecretBackendService struct {
// contains filtered or unexported fields
}
MockSecretBackendService is a mock of SecretBackendService interface.
func NewMockSecretBackendService ¶
func NewMockSecretBackendService(ctrl *gomock.Controller) *MockSecretBackendService
NewMockSecretBackendService creates a new mock instance.
func (*MockSecretBackendService) BackendConfigInfo ¶
func (m *MockSecretBackendService) BackendConfigInfo(arg0 context.Context, arg1 service0.BackendConfigParams) (*provider.ModelBackendConfigInfo, error)
BackendConfigInfo mocks base method.
func (*MockSecretBackendService) DrainBackendConfigInfo ¶
func (m *MockSecretBackendService) DrainBackendConfigInfo(arg0 context.Context, arg1 service0.DrainBackendConfigParams) (*provider.ModelBackendConfigInfo, error)
DrainBackendConfigInfo mocks base method.
func (*MockSecretBackendService) EXPECT ¶
func (m *MockSecretBackendService) EXPECT() *MockSecretBackendServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockSecretBackendServiceBackendConfigInfoCall ¶
MockSecretBackendServiceBackendConfigInfoCall wrap *gomock.Call
func (*MockSecretBackendServiceBackendConfigInfoCall) Do ¶
func (c *MockSecretBackendServiceBackendConfigInfoCall) Do(f func(context.Context, service0.BackendConfigParams) (*provider.ModelBackendConfigInfo, error)) *MockSecretBackendServiceBackendConfigInfoCall
Do rewrite *gomock.Call.Do
func (*MockSecretBackendServiceBackendConfigInfoCall) DoAndReturn ¶
func (c *MockSecretBackendServiceBackendConfigInfoCall) DoAndReturn(f func(context.Context, service0.BackendConfigParams) (*provider.ModelBackendConfigInfo, error)) *MockSecretBackendServiceBackendConfigInfoCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockSecretBackendServiceBackendConfigInfoCall) Return ¶
func (c *MockSecretBackendServiceBackendConfigInfoCall) Return(arg0 *provider.ModelBackendConfigInfo, arg1 error) *MockSecretBackendServiceBackendConfigInfoCall
Return rewrite *gomock.Call.Return
type MockSecretBackendServiceDrainBackendConfigInfoCall ¶
MockSecretBackendServiceDrainBackendConfigInfoCall wrap *gomock.Call
func (*MockSecretBackendServiceDrainBackendConfigInfoCall) Do ¶
func (c *MockSecretBackendServiceDrainBackendConfigInfoCall) Do(f func(context.Context, service0.DrainBackendConfigParams) (*provider.ModelBackendConfigInfo, error)) *MockSecretBackendServiceDrainBackendConfigInfoCall
Do rewrite *gomock.Call.Do
func (*MockSecretBackendServiceDrainBackendConfigInfoCall) DoAndReturn ¶
func (c *MockSecretBackendServiceDrainBackendConfigInfoCall) DoAndReturn(f func(context.Context, service0.DrainBackendConfigParams) (*provider.ModelBackendConfigInfo, error)) *MockSecretBackendServiceDrainBackendConfigInfoCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockSecretBackendServiceDrainBackendConfigInfoCall) Return ¶
func (c *MockSecretBackendServiceDrainBackendConfigInfoCall) Return(arg0 *provider.ModelBackendConfigInfo, arg1 error) *MockSecretBackendServiceDrainBackendConfigInfoCall
Return rewrite *gomock.Call.Return
type MockSecretBackendServiceMockRecorder ¶
type MockSecretBackendServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockSecretBackendServiceMockRecorder is the mock recorder for MockSecretBackendService.
func (*MockSecretBackendServiceMockRecorder) BackendConfigInfo ¶
func (mr *MockSecretBackendServiceMockRecorder) BackendConfigInfo(arg0, arg1 any) *MockSecretBackendServiceBackendConfigInfoCall
BackendConfigInfo indicates an expected call of BackendConfigInfo.
func (*MockSecretBackendServiceMockRecorder) DrainBackendConfigInfo ¶
func (mr *MockSecretBackendServiceMockRecorder) DrainBackendConfigInfo(arg0, arg1 any) *MockSecretBackendServiceDrainBackendConfigInfoCall
DrainBackendConfigInfo indicates an expected call of DrainBackendConfigInfo.
type MockSecretService ¶
type MockSecretService struct {
// contains filtered or unexported fields
}
MockSecretService is a mock of SecretService interface.
func NewMockSecretService ¶
func NewMockSecretService(ctrl *gomock.Controller) *MockSecretService
NewMockSecretService creates a new mock instance.
func (*MockSecretService) EXPECT ¶
func (m *MockSecretService) EXPECT() *MockSecretServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSecretService) GetSecret ¶
func (m *MockSecretService) GetSecret(arg0 context.Context, arg1 *secrets.URI) (*secrets.SecretMetadata, error)
GetSecret mocks base method.
func (*MockSecretService) GetSecretValue ¶
func (m *MockSecretService) GetSecretValue(arg0 context.Context, arg1 *secrets.URI, arg2 int, arg3 service.SecretAccessor) (secrets.SecretValue, *secrets.ValueRef, error)
GetSecretValue mocks base method.
func (*MockSecretService) ListGrantedSecretsForBackend ¶
func (m *MockSecretService) ListGrantedSecretsForBackend(arg0 context.Context, arg1 string, arg2 secrets.SecretRole, arg3 ...service.SecretAccessor) ([]*secrets.SecretRevisionRef, error)
ListGrantedSecretsForBackend mocks base method.
type MockSecretServiceGetSecretCall ¶
MockSecretServiceGetSecretCall wrap *gomock.Call
func (*MockSecretServiceGetSecretCall) Do ¶
func (c *MockSecretServiceGetSecretCall) Do(f func(context.Context, *secrets.URI) (*secrets.SecretMetadata, error)) *MockSecretServiceGetSecretCall
Do rewrite *gomock.Call.Do
func (*MockSecretServiceGetSecretCall) DoAndReturn ¶
func (c *MockSecretServiceGetSecretCall) DoAndReturn(f func(context.Context, *secrets.URI) (*secrets.SecretMetadata, error)) *MockSecretServiceGetSecretCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockSecretServiceGetSecretCall) Return ¶
func (c *MockSecretServiceGetSecretCall) Return(arg0 *secrets.SecretMetadata, arg1 error) *MockSecretServiceGetSecretCall
Return rewrite *gomock.Call.Return
type MockSecretServiceGetSecretValueCall ¶
MockSecretServiceGetSecretValueCall wrap *gomock.Call
func (*MockSecretServiceGetSecretValueCall) Do ¶
func (c *MockSecretServiceGetSecretValueCall) Do(f func(context.Context, *secrets.URI, int, service.SecretAccessor) (secrets.SecretValue, *secrets.ValueRef, error)) *MockSecretServiceGetSecretValueCall
Do rewrite *gomock.Call.Do
func (*MockSecretServiceGetSecretValueCall) DoAndReturn ¶
func (c *MockSecretServiceGetSecretValueCall) DoAndReturn(f func(context.Context, *secrets.URI, int, service.SecretAccessor) (secrets.SecretValue, *secrets.ValueRef, error)) *MockSecretServiceGetSecretValueCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockSecretServiceGetSecretValueCall) Return ¶
func (c *MockSecretServiceGetSecretValueCall) Return(arg0 secrets.SecretValue, arg1 *secrets.ValueRef, arg2 error) *MockSecretServiceGetSecretValueCall
Return rewrite *gomock.Call.Return
type MockSecretServiceListGrantedSecretsForBackendCall ¶
MockSecretServiceListGrantedSecretsForBackendCall wrap *gomock.Call
func (*MockSecretServiceListGrantedSecretsForBackendCall) Do ¶
func (c *MockSecretServiceListGrantedSecretsForBackendCall) Do(f func(context.Context, string, secrets.SecretRole, ...service.SecretAccessor) ([]*secrets.SecretRevisionRef, error)) *MockSecretServiceListGrantedSecretsForBackendCall
Do rewrite *gomock.Call.Do
func (*MockSecretServiceListGrantedSecretsForBackendCall) DoAndReturn ¶
func (c *MockSecretServiceListGrantedSecretsForBackendCall) DoAndReturn(f func(context.Context, string, secrets.SecretRole, ...service.SecretAccessor) ([]*secrets.SecretRevisionRef, error)) *MockSecretServiceListGrantedSecretsForBackendCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockSecretServiceListGrantedSecretsForBackendCall) Return ¶
func (c *MockSecretServiceListGrantedSecretsForBackendCall) Return(arg0 []*secrets.SecretRevisionRef, arg1 error) *MockSecretServiceListGrantedSecretsForBackendCall
Return rewrite *gomock.Call.Return
type MockSecretServiceMockRecorder ¶
type MockSecretServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockSecretServiceMockRecorder is the mock recorder for MockSecretService.
func (*MockSecretServiceMockRecorder) GetSecret ¶
func (mr *MockSecretServiceMockRecorder) GetSecret(arg0, arg1 any) *MockSecretServiceGetSecretCall
GetSecret indicates an expected call of GetSecret.
func (*MockSecretServiceMockRecorder) GetSecretValue ¶
func (mr *MockSecretServiceMockRecorder) GetSecretValue(arg0, arg1, arg2, arg3 any) *MockSecretServiceGetSecretValueCall
GetSecretValue indicates an expected call of GetSecretValue.
func (*MockSecretServiceMockRecorder) ListGrantedSecretsForBackend ¶
func (mr *MockSecretServiceMockRecorder) ListGrantedSecretsForBackend(arg0, arg1, arg2 any, arg3 ...any) *MockSecretServiceListGrantedSecretsForBackendCall
ListGrantedSecretsForBackend indicates an expected call of ListGrantedSecretsForBackend.