mocks

package
v0.0.0-...-f88c608 Latest Latest
Warning

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

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

Documentation

Overview

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.

Jump to

Keyboard shortcuts

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