mocks

package
v0.0.0-...-c3d9892 Latest Latest
Warning

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

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

Documentation

Overview

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 MockResources

type MockResources struct {
	// contains filtered or unexported fields
}

MockResources is a mock of Resources interface.

func NewMockResources

func NewMockResources(ctrl *gomock.Controller) *MockResources

NewMockResources creates a new mock instance.

func (*MockResources) EXPECT

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

func (*MockResources) Get

func (m *MockResources) Get(arg0 string) worker.Worker

Get mocks base method.

func (*MockResources) Register

func (m *MockResources) Register(arg0 worker.Worker) string

Register mocks base method.

func (*MockResources) Stop

func (m *MockResources) Stop(arg0 string) error

Stop mocks base method.

type MockResourcesGetCall

type MockResourcesGetCall struct {
	*gomock.Call
}

MockResourcesGetCall wrap *gomock.Call

func (*MockResourcesGetCall) Do

Do rewrite *gomock.Call.Do

func (*MockResourcesGetCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockResourcesGetCall) Return

Return rewrite *gomock.Call.Return

type MockResourcesMockRecorder

type MockResourcesMockRecorder struct {
	// contains filtered or unexported fields
}

MockResourcesMockRecorder is the mock recorder for MockResources.

func (*MockResourcesMockRecorder) Get

Get indicates an expected call of Get.

func (*MockResourcesMockRecorder) Register

Register indicates an expected call of Register.

func (*MockResourcesMockRecorder) Stop

Stop indicates an expected call of Stop.

type MockResourcesRegisterCall

type MockResourcesRegisterCall struct {
	*gomock.Call
}

MockResourcesRegisterCall wrap *gomock.Call

func (*MockResourcesRegisterCall) Do

Do rewrite *gomock.Call.Do

func (*MockResourcesRegisterCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockResourcesRegisterCall) Return

Return rewrite *gomock.Call.Return

type MockResourcesStopCall

type MockResourcesStopCall struct {
	*gomock.Call
}

MockResourcesStopCall wrap *gomock.Call

func (*MockResourcesStopCall) Do

Do rewrite *gomock.Call.Do

func (*MockResourcesStopCall) DoAndReturn

func (c *MockResourcesStopCall) DoAndReturn(f func(string) error) *MockResourcesStopCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockResourcesStopCall) Return

Return rewrite *gomock.Call.Return

Jump to

Keyboard shortcuts

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