Documentation
¶
Overview ¶
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
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.