mocks

package
v0.0.0-...-6248505 Latest Latest
Warning

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

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

Documentation

Overview

Package mocks is a generated GoMock package.

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 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

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

type MockAuthorizerAuthApplicationAgentCall struct {
	*gomock.Call
}

MockAuthorizerAuthApplicationAgentCall wrap *gomock.Call

func (*MockAuthorizerAuthApplicationAgentCall) Do

Do rewrite *gomock.Call.Do

func (*MockAuthorizerAuthApplicationAgentCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockAuthorizerAuthApplicationAgentCall) Return

Return rewrite *gomock.Call.Return

type MockAuthorizerAuthClientCall

type MockAuthorizerAuthClientCall struct {
	*gomock.Call
}

MockAuthorizerAuthClientCall wrap *gomock.Call

func (*MockAuthorizerAuthClientCall) Do

Do rewrite *gomock.Call.Do

func (*MockAuthorizerAuthClientCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockAuthorizerAuthClientCall) Return

Return rewrite *gomock.Call.Return

type MockAuthorizerAuthControllerCall

type MockAuthorizerAuthControllerCall struct {
	*gomock.Call
}

MockAuthorizerAuthControllerCall wrap *gomock.Call

func (*MockAuthorizerAuthControllerCall) Do

Do rewrite *gomock.Call.Do

func (*MockAuthorizerAuthControllerCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockAuthorizerAuthControllerCall) Return

Return rewrite *gomock.Call.Return

type MockAuthorizerAuthMachineAgentCall

type MockAuthorizerAuthMachineAgentCall struct {
	*gomock.Call
}

MockAuthorizerAuthMachineAgentCall wrap *gomock.Call

func (*MockAuthorizerAuthMachineAgentCall) Do

Do rewrite *gomock.Call.Do

func (*MockAuthorizerAuthMachineAgentCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockAuthorizerAuthMachineAgentCall) Return

Return rewrite *gomock.Call.Return

type MockAuthorizerAuthModelAgentCall

type MockAuthorizerAuthModelAgentCall struct {
	*gomock.Call
}

MockAuthorizerAuthModelAgentCall wrap *gomock.Call

func (*MockAuthorizerAuthModelAgentCall) Do

Do rewrite *gomock.Call.Do

func (*MockAuthorizerAuthModelAgentCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockAuthorizerAuthModelAgentCall) Return

Return rewrite *gomock.Call.Return

type MockAuthorizerAuthOwnerCall

type MockAuthorizerAuthOwnerCall struct {
	*gomock.Call
}

MockAuthorizerAuthOwnerCall wrap *gomock.Call

func (*MockAuthorizerAuthOwnerCall) Do

Do rewrite *gomock.Call.Do

func (*MockAuthorizerAuthOwnerCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockAuthorizerAuthOwnerCall) Return

Return rewrite *gomock.Call.Return

type MockAuthorizerAuthUnitAgentCall

type MockAuthorizerAuthUnitAgentCall struct {
	*gomock.Call
}

MockAuthorizerAuthUnitAgentCall wrap *gomock.Call

func (*MockAuthorizerAuthUnitAgentCall) Do

Do rewrite *gomock.Call.Do

func (*MockAuthorizerAuthUnitAgentCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockAuthorizerAuthUnitAgentCall) Return

Return rewrite *gomock.Call.Return

type MockAuthorizerEntityHasPermissionCall

type MockAuthorizerEntityHasPermissionCall struct {
	*gomock.Call
}

MockAuthorizerEntityHasPermissionCall wrap *gomock.Call

func (*MockAuthorizerEntityHasPermissionCall) Do

Do rewrite *gomock.Call.Do

func (*MockAuthorizerEntityHasPermissionCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockAuthorizerEntityHasPermissionCall) Return

Return rewrite *gomock.Call.Return

type MockAuthorizerGetAuthTagCall

type MockAuthorizerGetAuthTagCall struct {
	*gomock.Call
}

MockAuthorizerGetAuthTagCall wrap *gomock.Call

func (*MockAuthorizerGetAuthTagCall) Do

Do rewrite *gomock.Call.Do

func (*MockAuthorizerGetAuthTagCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockAuthorizerGetAuthTagCall) Return

Return rewrite *gomock.Call.Return

type MockAuthorizerHasPermissionCall

type MockAuthorizerHasPermissionCall struct {
	*gomock.Call
}

MockAuthorizerHasPermissionCall wrap *gomock.Call

func (*MockAuthorizerHasPermissionCall) Do

Do rewrite *gomock.Call.Do

func (*MockAuthorizerHasPermissionCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockAuthorizerHasPermissionCall) Return

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

AuthApplicationAgent indicates an expected call of AuthApplicationAgent.

func (*MockAuthorizerMockRecorder) AuthClient

AuthClient indicates an expected call of AuthClient.

func (*MockAuthorizerMockRecorder) AuthController

AuthController indicates an expected call of AuthController.

func (*MockAuthorizerMockRecorder) AuthMachineAgent

AuthMachineAgent indicates an expected call of AuthMachineAgent.

func (*MockAuthorizerMockRecorder) AuthModelAgent

AuthModelAgent indicates an expected call of AuthModelAgent.

func (*MockAuthorizerMockRecorder) AuthOwner

AuthOwner indicates an expected call of AuthOwner.

func (*MockAuthorizerMockRecorder) AuthUnitAgent

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

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

type MockCheckerLeadershipCheckCall struct {
	*gomock.Call
}

MockCheckerLeadershipCheckCall wrap *gomock.Call

func (*MockCheckerLeadershipCheckCall) Do

Do rewrite *gomock.Call.Do

func (*MockCheckerLeadershipCheckCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockCheckerLeadershipCheckCall) Return

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

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

func (*MockSecretBackendService) GetRevisionsToDrain

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

type MockSecretBackendServiceGetRevisionsToDrainCall struct {
	*gomock.Call
}

MockSecretBackendServiceGetRevisionsToDrainCall wrap *gomock.Call

func (*MockSecretBackendServiceGetRevisionsToDrainCall) Do

Do rewrite *gomock.Call.Do

func (*MockSecretBackendServiceGetRevisionsToDrainCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockSecretBackendServiceGetRevisionsToDrainCall) Return

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

GetRevisionsToDrain indicates an expected call of GetRevisionsToDrain.

func (*MockSecretBackendServiceMockRecorder) WatchModelSecretBackendChanged

WatchModelSecretBackendChanged indicates an expected call of WatchModelSecretBackendChanged.

type MockSecretBackendServiceWatchModelSecretBackendChangedCall

type MockSecretBackendServiceWatchModelSecretBackendChangedCall struct {
	*gomock.Call
}

MockSecretBackendServiceWatchModelSecretBackendChangedCall wrap *gomock.Call

func (*MockSecretBackendServiceWatchModelSecretBackendChangedCall) Do

Do rewrite *gomock.Call.Do

func (*MockSecretBackendServiceWatchModelSecretBackendChangedCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockSecretBackendServiceWatchModelSecretBackendChangedCall) Return

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

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

type MockSecretServiceChangeSecretBackendCall struct {
	*gomock.Call
}

MockSecretServiceChangeSecretBackendCall wrap *gomock.Call

func (*MockSecretServiceChangeSecretBackendCall) Do

Do rewrite *gomock.Call.Do

func (*MockSecretServiceChangeSecretBackendCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockSecretServiceChangeSecretBackendCall) Return

Return rewrite *gomock.Call.Return

type MockSecretServiceListCharmSecretsToDrainCall

type MockSecretServiceListCharmSecretsToDrainCall struct {
	*gomock.Call
}

MockSecretServiceListCharmSecretsToDrainCall wrap *gomock.Call

func (*MockSecretServiceListCharmSecretsToDrainCall) Do

Do rewrite *gomock.Call.Do

func (*MockSecretServiceListCharmSecretsToDrainCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockSecretServiceListCharmSecretsToDrainCall) Return

Return rewrite *gomock.Call.Return

type MockSecretServiceListUserSecretsToDrainCall

type MockSecretServiceListUserSecretsToDrainCall struct {
	*gomock.Call
}

MockSecretServiceListUserSecretsToDrainCall wrap *gomock.Call

func (*MockSecretServiceListUserSecretsToDrainCall) Do

Do rewrite *gomock.Call.Do

func (*MockSecretServiceListUserSecretsToDrainCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockSecretServiceListUserSecretsToDrainCall) Return

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

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) Check

func (m *MockToken) Check() error

Check mocks base method.

func (*MockToken) EXPECT

func (m *MockToken) EXPECT() *MockTokenMockRecorder

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

type MockTokenCheckCall

type MockTokenCheckCall struct {
	*gomock.Call
}

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

Check indicates an expected call of Check.

Jump to

Keyboard shortcuts

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