Documentation
¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockAuthorizer
- func (m *MockAuthorizer) AuthApplicationAgent() bool
- func (m *MockAuthorizer) AuthClient() bool
- func (m *MockAuthorizer) AuthController() bool
- func (m *MockAuthorizer) AuthMachineAgent() bool
- func (m *MockAuthorizer) AuthModelAgent() bool
- func (m *MockAuthorizer) AuthOwner(arg0 names.Tag) bool
- func (m *MockAuthorizer) AuthUnitAgent() bool
- func (m *MockAuthorizer) EXPECT() *MockAuthorizerMockRecorder
- func (m *MockAuthorizer) EntityHasPermission(arg0 context.Context, arg1 names.Tag, arg2 permission.Access, arg3 names.Tag) error
- func (m *MockAuthorizer) GetAuthTag() names.Tag
- func (m *MockAuthorizer) HasPermission(arg0 context.Context, arg1 permission.Access, arg2 names.Tag) error
- type MockAuthorizerAuthApplicationAgentCall
- func (c *MockAuthorizerAuthApplicationAgentCall) Do(f func() bool) *MockAuthorizerAuthApplicationAgentCall
- func (c *MockAuthorizerAuthApplicationAgentCall) DoAndReturn(f func() bool) *MockAuthorizerAuthApplicationAgentCall
- func (c *MockAuthorizerAuthApplicationAgentCall) Return(arg0 bool) *MockAuthorizerAuthApplicationAgentCall
- type MockAuthorizerAuthClientCall
- type MockAuthorizerAuthControllerCall
- type MockAuthorizerAuthMachineAgentCall
- func (c *MockAuthorizerAuthMachineAgentCall) Do(f func() bool) *MockAuthorizerAuthMachineAgentCall
- func (c *MockAuthorizerAuthMachineAgentCall) DoAndReturn(f func() bool) *MockAuthorizerAuthMachineAgentCall
- func (c *MockAuthorizerAuthMachineAgentCall) Return(arg0 bool) *MockAuthorizerAuthMachineAgentCall
- type MockAuthorizerAuthModelAgentCall
- type MockAuthorizerAuthOwnerCall
- type MockAuthorizerAuthUnitAgentCall
- type MockAuthorizerEntityHasPermissionCall
- func (c *MockAuthorizerEntityHasPermissionCall) Do(f func(context.Context, names.Tag, permission.Access, names.Tag) error) *MockAuthorizerEntityHasPermissionCall
- func (c *MockAuthorizerEntityHasPermissionCall) DoAndReturn(f func(context.Context, names.Tag, permission.Access, names.Tag) error) *MockAuthorizerEntityHasPermissionCall
- func (c *MockAuthorizerEntityHasPermissionCall) Return(arg0 error) *MockAuthorizerEntityHasPermissionCall
- type MockAuthorizerGetAuthTagCall
- type MockAuthorizerHasPermissionCall
- func (c *MockAuthorizerHasPermissionCall) Do(f func(context.Context, permission.Access, names.Tag) error) *MockAuthorizerHasPermissionCall
- func (c *MockAuthorizerHasPermissionCall) DoAndReturn(f func(context.Context, permission.Access, names.Tag) error) *MockAuthorizerHasPermissionCall
- func (c *MockAuthorizerHasPermissionCall) Return(arg0 error) *MockAuthorizerHasPermissionCall
- type MockAuthorizerMockRecorder
- func (mr *MockAuthorizerMockRecorder) AuthApplicationAgent() *MockAuthorizerAuthApplicationAgentCall
- func (mr *MockAuthorizerMockRecorder) AuthClient() *MockAuthorizerAuthClientCall
- func (mr *MockAuthorizerMockRecorder) AuthController() *MockAuthorizerAuthControllerCall
- func (mr *MockAuthorizerMockRecorder) AuthMachineAgent() *MockAuthorizerAuthMachineAgentCall
- func (mr *MockAuthorizerMockRecorder) AuthModelAgent() *MockAuthorizerAuthModelAgentCall
- func (mr *MockAuthorizerMockRecorder) AuthOwner(arg0 any) *MockAuthorizerAuthOwnerCall
- func (mr *MockAuthorizerMockRecorder) AuthUnitAgent() *MockAuthorizerAuthUnitAgentCall
- func (mr *MockAuthorizerMockRecorder) EntityHasPermission(arg0, arg1, arg2, arg3 any) *MockAuthorizerEntityHasPermissionCall
- func (mr *MockAuthorizerMockRecorder) GetAuthTag() *MockAuthorizerGetAuthTagCall
- func (mr *MockAuthorizerMockRecorder) HasPermission(arg0, arg1, arg2 any) *MockAuthorizerHasPermissionCall
- type MockChecker
- type MockCheckerLeadershipCheckCall
- func (c *MockCheckerLeadershipCheckCall) Do(f func(string, string) leadership.Token) *MockCheckerLeadershipCheckCall
- func (c *MockCheckerLeadershipCheckCall) DoAndReturn(f func(string, string) leadership.Token) *MockCheckerLeadershipCheckCall
- func (c *MockCheckerLeadershipCheckCall) Return(arg0 leadership.Token) *MockCheckerLeadershipCheckCall
- type MockCheckerMockRecorder
- type MockSecretBackendService
- func (m *MockSecretBackendService) EXPECT() *MockSecretBackendServiceMockRecorder
- func (m *MockSecretBackendService) GetRevisionsToDrain(arg0 context.Context, arg1 model.UUID, arg2 []secrets.SecretExternalRevision) ([]service0.RevisionInfo, error)
- func (m *MockSecretBackendService) WatchModelSecretBackendChanged(arg0 context.Context, arg1 model.UUID) (watcher.Watcher[struct{}], error)
- type MockSecretBackendServiceGetRevisionsToDrainCall
- func (c *MockSecretBackendServiceGetRevisionsToDrainCall) Do(...) *MockSecretBackendServiceGetRevisionsToDrainCall
- func (c *MockSecretBackendServiceGetRevisionsToDrainCall) DoAndReturn(...) *MockSecretBackendServiceGetRevisionsToDrainCall
- func (c *MockSecretBackendServiceGetRevisionsToDrainCall) Return(arg0 []service0.RevisionInfo, arg1 error) *MockSecretBackendServiceGetRevisionsToDrainCall
- type MockSecretBackendServiceMockRecorder
- type MockSecretBackendServiceWatchModelSecretBackendChangedCall
- func (c *MockSecretBackendServiceWatchModelSecretBackendChangedCall) Do(f func(context.Context, model.UUID) (watcher.Watcher[struct{}], error)) *MockSecretBackendServiceWatchModelSecretBackendChangedCall
- func (c *MockSecretBackendServiceWatchModelSecretBackendChangedCall) DoAndReturn(f func(context.Context, model.UUID) (watcher.Watcher[struct{}], error)) *MockSecretBackendServiceWatchModelSecretBackendChangedCall
- func (c *MockSecretBackendServiceWatchModelSecretBackendChangedCall) Return(arg0 watcher.Watcher[struct{}], arg1 error) *MockSecretBackendServiceWatchModelSecretBackendChangedCall
- type MockSecretService
- func (m *MockSecretService) ChangeSecretBackend(arg0 context.Context, arg1 *secrets.URI, arg2 int, ...) error
- func (m *MockSecretService) EXPECT() *MockSecretServiceMockRecorder
- func (m *MockSecretService) ListCharmSecretsToDrain(arg0 context.Context, arg1 ...service.CharmSecretOwner) ([]*secrets.SecretMetadataForDrain, error)
- func (m *MockSecretService) ListUserSecretsToDrain(arg0 context.Context) ([]*secrets.SecretMetadataForDrain, error)
- type MockSecretServiceChangeSecretBackendCall
- func (c *MockSecretServiceChangeSecretBackendCall) Do(...) *MockSecretServiceChangeSecretBackendCall
- func (c *MockSecretServiceChangeSecretBackendCall) DoAndReturn(...) *MockSecretServiceChangeSecretBackendCall
- func (c *MockSecretServiceChangeSecretBackendCall) Return(arg0 error) *MockSecretServiceChangeSecretBackendCall
- type MockSecretServiceListCharmSecretsToDrainCall
- func (c *MockSecretServiceListCharmSecretsToDrainCall) Do(...) *MockSecretServiceListCharmSecretsToDrainCall
- func (c *MockSecretServiceListCharmSecretsToDrainCall) DoAndReturn(...) *MockSecretServiceListCharmSecretsToDrainCall
- func (c *MockSecretServiceListCharmSecretsToDrainCall) Return(arg0 []*secrets.SecretMetadataForDrain, arg1 error) *MockSecretServiceListCharmSecretsToDrainCall
- type MockSecretServiceListUserSecretsToDrainCall
- func (c *MockSecretServiceListUserSecretsToDrainCall) Do(f func(context.Context) ([]*secrets.SecretMetadataForDrain, error)) *MockSecretServiceListUserSecretsToDrainCall
- func (c *MockSecretServiceListUserSecretsToDrainCall) DoAndReturn(f func(context.Context) ([]*secrets.SecretMetadataForDrain, error)) *MockSecretServiceListUserSecretsToDrainCall
- func (c *MockSecretServiceListUserSecretsToDrainCall) Return(arg0 []*secrets.SecretMetadataForDrain, arg1 error) *MockSecretServiceListUserSecretsToDrainCall
- type MockSecretServiceMockRecorder
- func (mr *MockSecretServiceMockRecorder) ChangeSecretBackend(arg0, arg1, arg2, arg3 any) *MockSecretServiceChangeSecretBackendCall
- func (mr *MockSecretServiceMockRecorder) ListCharmSecretsToDrain(arg0 any, arg1 ...any) *MockSecretServiceListCharmSecretsToDrainCall
- func (mr *MockSecretServiceMockRecorder) ListUserSecretsToDrain(arg0 any) *MockSecretServiceListUserSecretsToDrainCall
- type MockToken
- type MockTokenCheckCall
- type MockTokenMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAuthorizer ¶
type MockAuthorizer struct {
// contains filtered or unexported fields
}
MockAuthorizer is a mock of Authorizer interface.
func NewMockAuthorizer ¶
func NewMockAuthorizer(ctrl *gomock.Controller) *MockAuthorizer
NewMockAuthorizer creates a new mock instance.
func (*MockAuthorizer) AuthApplicationAgent ¶
func (m *MockAuthorizer) AuthApplicationAgent() bool
AuthApplicationAgent mocks base method.
func (*MockAuthorizer) AuthClient ¶
func (m *MockAuthorizer) AuthClient() bool
AuthClient mocks base method.
func (*MockAuthorizer) AuthController ¶
func (m *MockAuthorizer) AuthController() bool
AuthController mocks base method.
func (*MockAuthorizer) AuthMachineAgent ¶
func (m *MockAuthorizer) AuthMachineAgent() bool
AuthMachineAgent mocks base method.
func (*MockAuthorizer) AuthModelAgent ¶
func (m *MockAuthorizer) AuthModelAgent() bool
AuthModelAgent mocks base method.
func (*MockAuthorizer) AuthOwner ¶
func (m *MockAuthorizer) AuthOwner(arg0 names.Tag) bool
AuthOwner mocks base method.
func (*MockAuthorizer) AuthUnitAgent ¶
func (m *MockAuthorizer) AuthUnitAgent() bool
AuthUnitAgent mocks base method.
func (*MockAuthorizer) EXPECT ¶
func (m *MockAuthorizer) EXPECT() *MockAuthorizerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAuthorizer) EntityHasPermission ¶
func (m *MockAuthorizer) EntityHasPermission(arg0 context.Context, arg1 names.Tag, arg2 permission.Access, arg3 names.Tag) error
EntityHasPermission mocks base method.
func (*MockAuthorizer) GetAuthTag ¶
func (m *MockAuthorizer) GetAuthTag() names.Tag
GetAuthTag mocks base method.
func (*MockAuthorizer) HasPermission ¶
func (m *MockAuthorizer) HasPermission(arg0 context.Context, arg1 permission.Access, arg2 names.Tag) error
HasPermission mocks base method.
type MockAuthorizerAuthApplicationAgentCall ¶
MockAuthorizerAuthApplicationAgentCall wrap *gomock.Call
func (*MockAuthorizerAuthApplicationAgentCall) Do ¶
func (c *MockAuthorizerAuthApplicationAgentCall) Do(f func() bool) *MockAuthorizerAuthApplicationAgentCall
Do rewrite *gomock.Call.Do
func (*MockAuthorizerAuthApplicationAgentCall) DoAndReturn ¶
func (c *MockAuthorizerAuthApplicationAgentCall) DoAndReturn(f func() bool) *MockAuthorizerAuthApplicationAgentCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockAuthorizerAuthApplicationAgentCall) Return ¶
func (c *MockAuthorizerAuthApplicationAgentCall) Return(arg0 bool) *MockAuthorizerAuthApplicationAgentCall
Return rewrite *gomock.Call.Return
type MockAuthorizerAuthClientCall ¶
MockAuthorizerAuthClientCall wrap *gomock.Call
func (*MockAuthorizerAuthClientCall) Do ¶
func (c *MockAuthorizerAuthClientCall) Do(f func() bool) *MockAuthorizerAuthClientCall
Do rewrite *gomock.Call.Do
func (*MockAuthorizerAuthClientCall) DoAndReturn ¶
func (c *MockAuthorizerAuthClientCall) DoAndReturn(f func() bool) *MockAuthorizerAuthClientCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockAuthorizerAuthClientCall) Return ¶
func (c *MockAuthorizerAuthClientCall) Return(arg0 bool) *MockAuthorizerAuthClientCall
Return rewrite *gomock.Call.Return
type MockAuthorizerAuthControllerCall ¶
MockAuthorizerAuthControllerCall wrap *gomock.Call
func (*MockAuthorizerAuthControllerCall) Do ¶
func (c *MockAuthorizerAuthControllerCall) Do(f func() bool) *MockAuthorizerAuthControllerCall
Do rewrite *gomock.Call.Do
func (*MockAuthorizerAuthControllerCall) DoAndReturn ¶
func (c *MockAuthorizerAuthControllerCall) DoAndReturn(f func() bool) *MockAuthorizerAuthControllerCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockAuthorizerAuthControllerCall) Return ¶
func (c *MockAuthorizerAuthControllerCall) Return(arg0 bool) *MockAuthorizerAuthControllerCall
Return rewrite *gomock.Call.Return
type MockAuthorizerAuthMachineAgentCall ¶
MockAuthorizerAuthMachineAgentCall wrap *gomock.Call
func (*MockAuthorizerAuthMachineAgentCall) Do ¶
func (c *MockAuthorizerAuthMachineAgentCall) Do(f func() bool) *MockAuthorizerAuthMachineAgentCall
Do rewrite *gomock.Call.Do
func (*MockAuthorizerAuthMachineAgentCall) DoAndReturn ¶
func (c *MockAuthorizerAuthMachineAgentCall) DoAndReturn(f func() bool) *MockAuthorizerAuthMachineAgentCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockAuthorizerAuthMachineAgentCall) Return ¶
func (c *MockAuthorizerAuthMachineAgentCall) Return(arg0 bool) *MockAuthorizerAuthMachineAgentCall
Return rewrite *gomock.Call.Return
type MockAuthorizerAuthModelAgentCall ¶
MockAuthorizerAuthModelAgentCall wrap *gomock.Call
func (*MockAuthorizerAuthModelAgentCall) Do ¶
func (c *MockAuthorizerAuthModelAgentCall) Do(f func() bool) *MockAuthorizerAuthModelAgentCall
Do rewrite *gomock.Call.Do
func (*MockAuthorizerAuthModelAgentCall) DoAndReturn ¶
func (c *MockAuthorizerAuthModelAgentCall) DoAndReturn(f func() bool) *MockAuthorizerAuthModelAgentCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockAuthorizerAuthModelAgentCall) Return ¶
func (c *MockAuthorizerAuthModelAgentCall) Return(arg0 bool) *MockAuthorizerAuthModelAgentCall
Return rewrite *gomock.Call.Return
type MockAuthorizerAuthOwnerCall ¶
MockAuthorizerAuthOwnerCall wrap *gomock.Call
func (*MockAuthorizerAuthOwnerCall) Do ¶
func (c *MockAuthorizerAuthOwnerCall) Do(f func(names.Tag) bool) *MockAuthorizerAuthOwnerCall
Do rewrite *gomock.Call.Do
func (*MockAuthorizerAuthOwnerCall) DoAndReturn ¶
func (c *MockAuthorizerAuthOwnerCall) DoAndReturn(f func(names.Tag) bool) *MockAuthorizerAuthOwnerCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockAuthorizerAuthOwnerCall) Return ¶
func (c *MockAuthorizerAuthOwnerCall) Return(arg0 bool) *MockAuthorizerAuthOwnerCall
Return rewrite *gomock.Call.Return
type MockAuthorizerAuthUnitAgentCall ¶
MockAuthorizerAuthUnitAgentCall wrap *gomock.Call
func (*MockAuthorizerAuthUnitAgentCall) Do ¶
func (c *MockAuthorizerAuthUnitAgentCall) Do(f func() bool) *MockAuthorizerAuthUnitAgentCall
Do rewrite *gomock.Call.Do
func (*MockAuthorizerAuthUnitAgentCall) DoAndReturn ¶
func (c *MockAuthorizerAuthUnitAgentCall) DoAndReturn(f func() bool) *MockAuthorizerAuthUnitAgentCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockAuthorizerAuthUnitAgentCall) Return ¶
func (c *MockAuthorizerAuthUnitAgentCall) Return(arg0 bool) *MockAuthorizerAuthUnitAgentCall
Return rewrite *gomock.Call.Return
type MockAuthorizerEntityHasPermissionCall ¶
MockAuthorizerEntityHasPermissionCall wrap *gomock.Call
func (*MockAuthorizerEntityHasPermissionCall) Do ¶
func (c *MockAuthorizerEntityHasPermissionCall) Do(f func(context.Context, names.Tag, permission.Access, names.Tag) error) *MockAuthorizerEntityHasPermissionCall
Do rewrite *gomock.Call.Do
func (*MockAuthorizerEntityHasPermissionCall) DoAndReturn ¶
func (c *MockAuthorizerEntityHasPermissionCall) DoAndReturn(f func(context.Context, names.Tag, permission.Access, names.Tag) error) *MockAuthorizerEntityHasPermissionCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockAuthorizerEntityHasPermissionCall) Return ¶
func (c *MockAuthorizerEntityHasPermissionCall) Return(arg0 error) *MockAuthorizerEntityHasPermissionCall
Return rewrite *gomock.Call.Return
type MockAuthorizerGetAuthTagCall ¶
MockAuthorizerGetAuthTagCall wrap *gomock.Call
func (*MockAuthorizerGetAuthTagCall) Do ¶
func (c *MockAuthorizerGetAuthTagCall) Do(f func() names.Tag) *MockAuthorizerGetAuthTagCall
Do rewrite *gomock.Call.Do
func (*MockAuthorizerGetAuthTagCall) DoAndReturn ¶
func (c *MockAuthorizerGetAuthTagCall) DoAndReturn(f func() names.Tag) *MockAuthorizerGetAuthTagCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockAuthorizerGetAuthTagCall) Return ¶
func (c *MockAuthorizerGetAuthTagCall) Return(arg0 names.Tag) *MockAuthorizerGetAuthTagCall
Return rewrite *gomock.Call.Return
type MockAuthorizerHasPermissionCall ¶
MockAuthorizerHasPermissionCall wrap *gomock.Call
func (*MockAuthorizerHasPermissionCall) Do ¶
func (c *MockAuthorizerHasPermissionCall) Do(f func(context.Context, permission.Access, names.Tag) error) *MockAuthorizerHasPermissionCall
Do rewrite *gomock.Call.Do
func (*MockAuthorizerHasPermissionCall) DoAndReturn ¶
func (c *MockAuthorizerHasPermissionCall) DoAndReturn(f func(context.Context, permission.Access, names.Tag) error) *MockAuthorizerHasPermissionCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockAuthorizerHasPermissionCall) Return ¶
func (c *MockAuthorizerHasPermissionCall) Return(arg0 error) *MockAuthorizerHasPermissionCall
Return rewrite *gomock.Call.Return
type MockAuthorizerMockRecorder ¶
type MockAuthorizerMockRecorder struct {
// contains filtered or unexported fields
}
MockAuthorizerMockRecorder is the mock recorder for MockAuthorizer.
func (*MockAuthorizerMockRecorder) AuthApplicationAgent ¶
func (mr *MockAuthorizerMockRecorder) AuthApplicationAgent() *MockAuthorizerAuthApplicationAgentCall
AuthApplicationAgent indicates an expected call of AuthApplicationAgent.
func (*MockAuthorizerMockRecorder) AuthClient ¶
func (mr *MockAuthorizerMockRecorder) AuthClient() *MockAuthorizerAuthClientCall
AuthClient indicates an expected call of AuthClient.
func (*MockAuthorizerMockRecorder) AuthController ¶
func (mr *MockAuthorizerMockRecorder) AuthController() *MockAuthorizerAuthControllerCall
AuthController indicates an expected call of AuthController.
func (*MockAuthorizerMockRecorder) AuthMachineAgent ¶
func (mr *MockAuthorizerMockRecorder) AuthMachineAgent() *MockAuthorizerAuthMachineAgentCall
AuthMachineAgent indicates an expected call of AuthMachineAgent.
func (*MockAuthorizerMockRecorder) AuthModelAgent ¶
func (mr *MockAuthorizerMockRecorder) AuthModelAgent() *MockAuthorizerAuthModelAgentCall
AuthModelAgent indicates an expected call of AuthModelAgent.
func (*MockAuthorizerMockRecorder) AuthOwner ¶
func (mr *MockAuthorizerMockRecorder) AuthOwner(arg0 any) *MockAuthorizerAuthOwnerCall
AuthOwner indicates an expected call of AuthOwner.
func (*MockAuthorizerMockRecorder) AuthUnitAgent ¶
func (mr *MockAuthorizerMockRecorder) AuthUnitAgent() *MockAuthorizerAuthUnitAgentCall
AuthUnitAgent indicates an expected call of AuthUnitAgent.
func (*MockAuthorizerMockRecorder) EntityHasPermission ¶
func (mr *MockAuthorizerMockRecorder) EntityHasPermission(arg0, arg1, arg2, arg3 any) *MockAuthorizerEntityHasPermissionCall
EntityHasPermission indicates an expected call of EntityHasPermission.
func (*MockAuthorizerMockRecorder) GetAuthTag ¶
func (mr *MockAuthorizerMockRecorder) GetAuthTag() *MockAuthorizerGetAuthTagCall
GetAuthTag indicates an expected call of GetAuthTag.
func (*MockAuthorizerMockRecorder) HasPermission ¶
func (mr *MockAuthorizerMockRecorder) HasPermission(arg0, arg1, arg2 any) *MockAuthorizerHasPermissionCall
HasPermission indicates an expected call of HasPermission.
type MockChecker ¶
type MockChecker struct {
// contains filtered or unexported fields
}
MockChecker is a mock of Checker interface.
func NewMockChecker ¶
func NewMockChecker(ctrl *gomock.Controller) *MockChecker
NewMockChecker creates a new mock instance.
func (*MockChecker) EXPECT ¶
func (m *MockChecker) EXPECT() *MockCheckerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockChecker) LeadershipCheck ¶
func (m *MockChecker) LeadershipCheck(arg0, arg1 string) leadership.Token
LeadershipCheck mocks base method.
type MockCheckerLeadershipCheckCall ¶
MockCheckerLeadershipCheckCall wrap *gomock.Call
func (*MockCheckerLeadershipCheckCall) Do ¶
func (c *MockCheckerLeadershipCheckCall) Do(f func(string, string) leadership.Token) *MockCheckerLeadershipCheckCall
Do rewrite *gomock.Call.Do
func (*MockCheckerLeadershipCheckCall) DoAndReturn ¶
func (c *MockCheckerLeadershipCheckCall) DoAndReturn(f func(string, string) leadership.Token) *MockCheckerLeadershipCheckCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockCheckerLeadershipCheckCall) Return ¶
func (c *MockCheckerLeadershipCheckCall) Return(arg0 leadership.Token) *MockCheckerLeadershipCheckCall
Return rewrite *gomock.Call.Return
type MockCheckerMockRecorder ¶
type MockCheckerMockRecorder struct {
// contains filtered or unexported fields
}
MockCheckerMockRecorder is the mock recorder for MockChecker.
func (*MockCheckerMockRecorder) LeadershipCheck ¶
func (mr *MockCheckerMockRecorder) LeadershipCheck(arg0, arg1 any) *MockCheckerLeadershipCheckCall
LeadershipCheck indicates an expected call of LeadershipCheck.
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) EXPECT ¶
func (m *MockSecretBackendService) EXPECT() *MockSecretBackendServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSecretBackendService) GetRevisionsToDrain ¶
func (m *MockSecretBackendService) GetRevisionsToDrain(arg0 context.Context, arg1 model.UUID, arg2 []secrets.SecretExternalRevision) ([]service0.RevisionInfo, error)
GetRevisionsToDrain mocks base method.
func (*MockSecretBackendService) WatchModelSecretBackendChanged ¶
func (m *MockSecretBackendService) WatchModelSecretBackendChanged(arg0 context.Context, arg1 model.UUID) (watcher.Watcher[struct{}], error)
WatchModelSecretBackendChanged mocks base method.
type MockSecretBackendServiceGetRevisionsToDrainCall ¶
MockSecretBackendServiceGetRevisionsToDrainCall wrap *gomock.Call
func (*MockSecretBackendServiceGetRevisionsToDrainCall) Do ¶
func (c *MockSecretBackendServiceGetRevisionsToDrainCall) Do(f func(context.Context, model.UUID, []secrets.SecretExternalRevision) ([]service0.RevisionInfo, error)) *MockSecretBackendServiceGetRevisionsToDrainCall
Do rewrite *gomock.Call.Do
func (*MockSecretBackendServiceGetRevisionsToDrainCall) DoAndReturn ¶
func (c *MockSecretBackendServiceGetRevisionsToDrainCall) DoAndReturn(f func(context.Context, model.UUID, []secrets.SecretExternalRevision) ([]service0.RevisionInfo, error)) *MockSecretBackendServiceGetRevisionsToDrainCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockSecretBackendServiceGetRevisionsToDrainCall) Return ¶
func (c *MockSecretBackendServiceGetRevisionsToDrainCall) Return(arg0 []service0.RevisionInfo, arg1 error) *MockSecretBackendServiceGetRevisionsToDrainCall
Return rewrite *gomock.Call.Return
type MockSecretBackendServiceMockRecorder ¶
type MockSecretBackendServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockSecretBackendServiceMockRecorder is the mock recorder for MockSecretBackendService.
func (*MockSecretBackendServiceMockRecorder) GetRevisionsToDrain ¶
func (mr *MockSecretBackendServiceMockRecorder) GetRevisionsToDrain(arg0, arg1, arg2 any) *MockSecretBackendServiceGetRevisionsToDrainCall
GetRevisionsToDrain indicates an expected call of GetRevisionsToDrain.
func (*MockSecretBackendServiceMockRecorder) WatchModelSecretBackendChanged ¶
func (mr *MockSecretBackendServiceMockRecorder) WatchModelSecretBackendChanged(arg0, arg1 any) *MockSecretBackendServiceWatchModelSecretBackendChangedCall
WatchModelSecretBackendChanged indicates an expected call of WatchModelSecretBackendChanged.
type MockSecretBackendServiceWatchModelSecretBackendChangedCall ¶
MockSecretBackendServiceWatchModelSecretBackendChangedCall wrap *gomock.Call
func (*MockSecretBackendServiceWatchModelSecretBackendChangedCall) Do ¶
func (c *MockSecretBackendServiceWatchModelSecretBackendChangedCall) Do(f func(context.Context, model.UUID) (watcher.Watcher[struct{}], error)) *MockSecretBackendServiceWatchModelSecretBackendChangedCall
Do rewrite *gomock.Call.Do
func (*MockSecretBackendServiceWatchModelSecretBackendChangedCall) DoAndReturn ¶
func (c *MockSecretBackendServiceWatchModelSecretBackendChangedCall) DoAndReturn(f func(context.Context, model.UUID) (watcher.Watcher[struct{}], error)) *MockSecretBackendServiceWatchModelSecretBackendChangedCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockSecretBackendServiceWatchModelSecretBackendChangedCall) Return ¶
func (c *MockSecretBackendServiceWatchModelSecretBackendChangedCall) Return(arg0 watcher.Watcher[struct{}], arg1 error) *MockSecretBackendServiceWatchModelSecretBackendChangedCall
Return rewrite *gomock.Call.Return
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) ChangeSecretBackend ¶
func (m *MockSecretService) ChangeSecretBackend(arg0 context.Context, arg1 *secrets.URI, arg2 int, arg3 service.ChangeSecretBackendParams) error
ChangeSecretBackend mocks base method.
func (*MockSecretService) EXPECT ¶
func (m *MockSecretService) EXPECT() *MockSecretServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSecretService) ListCharmSecretsToDrain ¶
func (m *MockSecretService) ListCharmSecretsToDrain(arg0 context.Context, arg1 ...service.CharmSecretOwner) ([]*secrets.SecretMetadataForDrain, error)
ListCharmSecretsToDrain mocks base method.
func (*MockSecretService) ListUserSecretsToDrain ¶
func (m *MockSecretService) ListUserSecretsToDrain(arg0 context.Context) ([]*secrets.SecretMetadataForDrain, error)
ListUserSecretsToDrain mocks base method.
type MockSecretServiceChangeSecretBackendCall ¶
MockSecretServiceChangeSecretBackendCall wrap *gomock.Call
func (*MockSecretServiceChangeSecretBackendCall) Do ¶
func (c *MockSecretServiceChangeSecretBackendCall) Do(f func(context.Context, *secrets.URI, int, service.ChangeSecretBackendParams) error) *MockSecretServiceChangeSecretBackendCall
Do rewrite *gomock.Call.Do
func (*MockSecretServiceChangeSecretBackendCall) DoAndReturn ¶
func (c *MockSecretServiceChangeSecretBackendCall) DoAndReturn(f func(context.Context, *secrets.URI, int, service.ChangeSecretBackendParams) error) *MockSecretServiceChangeSecretBackendCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockSecretServiceChangeSecretBackendCall) Return ¶
func (c *MockSecretServiceChangeSecretBackendCall) Return(arg0 error) *MockSecretServiceChangeSecretBackendCall
Return rewrite *gomock.Call.Return
type MockSecretServiceListCharmSecretsToDrainCall ¶
MockSecretServiceListCharmSecretsToDrainCall wrap *gomock.Call
func (*MockSecretServiceListCharmSecretsToDrainCall) Do ¶
func (c *MockSecretServiceListCharmSecretsToDrainCall) Do(f func(context.Context, ...service.CharmSecretOwner) ([]*secrets.SecretMetadataForDrain, error)) *MockSecretServiceListCharmSecretsToDrainCall
Do rewrite *gomock.Call.Do
func (*MockSecretServiceListCharmSecretsToDrainCall) DoAndReturn ¶
func (c *MockSecretServiceListCharmSecretsToDrainCall) DoAndReturn(f func(context.Context, ...service.CharmSecretOwner) ([]*secrets.SecretMetadataForDrain, error)) *MockSecretServiceListCharmSecretsToDrainCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockSecretServiceListCharmSecretsToDrainCall) Return ¶
func (c *MockSecretServiceListCharmSecretsToDrainCall) Return(arg0 []*secrets.SecretMetadataForDrain, arg1 error) *MockSecretServiceListCharmSecretsToDrainCall
Return rewrite *gomock.Call.Return
type MockSecretServiceListUserSecretsToDrainCall ¶
MockSecretServiceListUserSecretsToDrainCall wrap *gomock.Call
func (*MockSecretServiceListUserSecretsToDrainCall) Do ¶
func (c *MockSecretServiceListUserSecretsToDrainCall) Do(f func(context.Context) ([]*secrets.SecretMetadataForDrain, error)) *MockSecretServiceListUserSecretsToDrainCall
Do rewrite *gomock.Call.Do
func (*MockSecretServiceListUserSecretsToDrainCall) DoAndReturn ¶
func (c *MockSecretServiceListUserSecretsToDrainCall) DoAndReturn(f func(context.Context) ([]*secrets.SecretMetadataForDrain, error)) *MockSecretServiceListUserSecretsToDrainCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockSecretServiceListUserSecretsToDrainCall) Return ¶
func (c *MockSecretServiceListUserSecretsToDrainCall) Return(arg0 []*secrets.SecretMetadataForDrain, arg1 error) *MockSecretServiceListUserSecretsToDrainCall
Return rewrite *gomock.Call.Return
type MockSecretServiceMockRecorder ¶
type MockSecretServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockSecretServiceMockRecorder is the mock recorder for MockSecretService.
func (*MockSecretServiceMockRecorder) ChangeSecretBackend ¶
func (mr *MockSecretServiceMockRecorder) ChangeSecretBackend(arg0, arg1, arg2, arg3 any) *MockSecretServiceChangeSecretBackendCall
ChangeSecretBackend indicates an expected call of ChangeSecretBackend.
func (*MockSecretServiceMockRecorder) ListCharmSecretsToDrain ¶
func (mr *MockSecretServiceMockRecorder) ListCharmSecretsToDrain(arg0 any, arg1 ...any) *MockSecretServiceListCharmSecretsToDrainCall
ListCharmSecretsToDrain indicates an expected call of ListCharmSecretsToDrain.
func (*MockSecretServiceMockRecorder) ListUserSecretsToDrain ¶
func (mr *MockSecretServiceMockRecorder) ListUserSecretsToDrain(arg0 any) *MockSecretServiceListUserSecretsToDrainCall
ListUserSecretsToDrain indicates an expected call of ListUserSecretsToDrain.
type MockToken ¶
type MockToken struct {
// contains filtered or unexported fields
}
MockToken is a mock of Token interface.
func NewMockToken ¶
func NewMockToken(ctrl *gomock.Controller) *MockToken
NewMockToken creates a new mock instance.
func (*MockToken) EXPECT ¶
func (m *MockToken) EXPECT() *MockTokenMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockTokenCheckCall ¶
MockTokenCheckCall wrap *gomock.Call
func (*MockTokenCheckCall) Do ¶
func (c *MockTokenCheckCall) Do(f func() error) *MockTokenCheckCall
Do rewrite *gomock.Call.Do
func (*MockTokenCheckCall) DoAndReturn ¶
func (c *MockTokenCheckCall) DoAndReturn(f func() error) *MockTokenCheckCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockTokenCheckCall) Return ¶
func (c *MockTokenCheckCall) Return(arg0 error) *MockTokenCheckCall
Return rewrite *gomock.Call.Return
type MockTokenMockRecorder ¶
type MockTokenMockRecorder struct {
// contains filtered or unexported fields
}
MockTokenMockRecorder is the mock recorder for MockToken.
func (*MockTokenMockRecorder) Check ¶
func (mr *MockTokenMockRecorder) Check() *MockTokenCheckCall
Check indicates an expected call of Check.