Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockApplication
- type MockApplicationCharmConfigCall
- func (c *MockApplicationCharmConfigCall) Do(f func() (charm.Settings, error)) *MockApplicationCharmConfigCall
- func (c *MockApplicationCharmConfigCall) DoAndReturn(f func() (charm.Settings, error)) *MockApplicationCharmConfigCall
- func (c *MockApplicationCharmConfigCall) Return(arg0 charm.Settings, arg1 error) *MockApplicationCharmConfigCall
- type MockApplicationMockRecorder
- type MockApplicationNameCall
- type MockApplicationRelationsCall
- func (c *MockApplicationRelationsCall) Do(f func() ([]controller.Relation, error)) *MockApplicationRelationsCall
- func (c *MockApplicationRelationsCall) DoAndReturn(f func() ([]controller.Relation, error)) *MockApplicationRelationsCall
- func (c *MockApplicationRelationsCall) Return(arg0 []controller.Relation, arg1 error) *MockApplicationRelationsCall
- type MockBackend
- func (m *MockBackend) AllModelUUIDs() ([]string, error)
- func (m *MockBackend) Application(arg0 string) (controller.Application, error)
- func (m *MockBackend) ControllerModelUUID() string
- func (m *MockBackend) EXPECT() *MockBackendMockRecorder
- func (m *MockBackend) Model() (*state.Model, error)
- func (m *MockBackend) ModelExists(arg0 string) (bool, error)
- func (m *MockBackend) MongoVersion() (string, error)
- type MockBackendAllModelUUIDsCall
- func (c *MockBackendAllModelUUIDsCall) Do(f func() ([]string, error)) *MockBackendAllModelUUIDsCall
- func (c *MockBackendAllModelUUIDsCall) DoAndReturn(f func() ([]string, error)) *MockBackendAllModelUUIDsCall
- func (c *MockBackendAllModelUUIDsCall) Return(arg0 []string, arg1 error) *MockBackendAllModelUUIDsCall
- type MockBackendApplicationCall
- func (c *MockBackendApplicationCall) Do(f func(string) (controller.Application, error)) *MockBackendApplicationCall
- func (c *MockBackendApplicationCall) DoAndReturn(f func(string) (controller.Application, error)) *MockBackendApplicationCall
- func (c *MockBackendApplicationCall) Return(arg0 controller.Application, arg1 error) *MockBackendApplicationCall
- type MockBackendControllerModelUUIDCall
- func (c *MockBackendControllerModelUUIDCall) Do(f func() string) *MockBackendControllerModelUUIDCall
- func (c *MockBackendControllerModelUUIDCall) DoAndReturn(f func() string) *MockBackendControllerModelUUIDCall
- func (c *MockBackendControllerModelUUIDCall) Return(arg0 string) *MockBackendControllerModelUUIDCall
- type MockBackendMockRecorder
- func (mr *MockBackendMockRecorder) AllModelUUIDs() *MockBackendAllModelUUIDsCall
- func (mr *MockBackendMockRecorder) Application(arg0 any) *MockBackendApplicationCall
- func (mr *MockBackendMockRecorder) ControllerModelUUID() *MockBackendControllerModelUUIDCall
- func (mr *MockBackendMockRecorder) Model() *MockBackendModelCall
- func (mr *MockBackendMockRecorder) ModelExists(arg0 any) *MockBackendModelExistsCall
- func (mr *MockBackendMockRecorder) MongoVersion() *MockBackendMongoVersionCall
- type MockBackendModelCall
- type MockBackendModelExistsCall
- type MockBackendMongoVersionCall
- type MockControllerAccessService
- func (m *MockControllerAccessService) EXPECT() *MockControllerAccessServiceMockRecorder
- func (m *MockControllerAccessService) LastModelLogin(arg0 context.Context, arg1 user.Name, arg2 model.UUID) (time.Time, error)
- func (m *MockControllerAccessService) ReadUserAccessLevelForTarget(arg0 context.Context, arg1 user.Name, arg2 permission.ID) (permission.Access, error)
- func (m *MockControllerAccessService) UpdatePermission(arg0 context.Context, arg1 access.UpdatePermissionArgs) error
- type MockControllerAccessServiceLastModelLoginCall
- func (c *MockControllerAccessServiceLastModelLoginCall) Do(f func(context.Context, user.Name, model.UUID) (time.Time, error)) *MockControllerAccessServiceLastModelLoginCall
- func (c *MockControllerAccessServiceLastModelLoginCall) DoAndReturn(f func(context.Context, user.Name, model.UUID) (time.Time, error)) *MockControllerAccessServiceLastModelLoginCall
- func (c *MockControllerAccessServiceLastModelLoginCall) Return(arg0 time.Time, arg1 error) *MockControllerAccessServiceLastModelLoginCall
- type MockControllerAccessServiceMockRecorder
- func (mr *MockControllerAccessServiceMockRecorder) LastModelLogin(arg0, arg1, arg2 any) *MockControllerAccessServiceLastModelLoginCall
- func (mr *MockControllerAccessServiceMockRecorder) ReadUserAccessLevelForTarget(arg0, arg1, arg2 any) *MockControllerAccessServiceReadUserAccessLevelForTargetCall
- func (mr *MockControllerAccessServiceMockRecorder) UpdatePermission(arg0, arg1 any) *MockControllerAccessServiceUpdatePermissionCall
- type MockControllerAccessServiceReadUserAccessLevelForTargetCall
- func (c *MockControllerAccessServiceReadUserAccessLevelForTargetCall) Do(f func(context.Context, user.Name, permission.ID) (permission.Access, error)) *MockControllerAccessServiceReadUserAccessLevelForTargetCall
- func (c *MockControllerAccessServiceReadUserAccessLevelForTargetCall) DoAndReturn(f func(context.Context, user.Name, permission.ID) (permission.Access, error)) *MockControllerAccessServiceReadUserAccessLevelForTargetCall
- func (c *MockControllerAccessServiceReadUserAccessLevelForTargetCall) Return(arg0 permission.Access, arg1 error) *MockControllerAccessServiceReadUserAccessLevelForTargetCall
- type MockControllerAccessServiceUpdatePermissionCall
- func (c *MockControllerAccessServiceUpdatePermissionCall) Do(f func(context.Context, access.UpdatePermissionArgs) error) *MockControllerAccessServiceUpdatePermissionCall
- func (c *MockControllerAccessServiceUpdatePermissionCall) DoAndReturn(f func(context.Context, access.UpdatePermissionArgs) error) *MockControllerAccessServiceUpdatePermissionCall
- func (c *MockControllerAccessServiceUpdatePermissionCall) Return(arg0 error) *MockControllerAccessServiceUpdatePermissionCall
- type MockControllerConfigService
- func (m *MockControllerConfigService) ControllerConfig(arg0 context.Context) (controller.Config, error)
- func (m *MockControllerConfigService) EXPECT() *MockControllerConfigServiceMockRecorder
- func (m *MockControllerConfigService) UpdateControllerConfig(arg0 context.Context, arg1 controller.Config, arg2 []string) error
- type MockControllerConfigServiceControllerConfigCall
- func (c *MockControllerConfigServiceControllerConfigCall) Do(f func(context.Context) (controller.Config, error)) *MockControllerConfigServiceControllerConfigCall
- func (c *MockControllerConfigServiceControllerConfigCall) DoAndReturn(f func(context.Context) (controller.Config, error)) *MockControllerConfigServiceControllerConfigCall
- func (c *MockControllerConfigServiceControllerConfigCall) Return(arg0 controller.Config, arg1 error) *MockControllerConfigServiceControllerConfigCall
- type MockControllerConfigServiceMockRecorder
- type MockControllerConfigServiceUpdateControllerConfigCall
- func (c *MockControllerConfigServiceUpdateControllerConfigCall) Do(f func(context.Context, controller.Config, []string) error) *MockControllerConfigServiceUpdateControllerConfigCall
- func (c *MockControllerConfigServiceUpdateControllerConfigCall) DoAndReturn(f func(context.Context, controller.Config, []string) error) *MockControllerConfigServiceUpdateControllerConfigCall
- func (c *MockControllerConfigServiceUpdateControllerConfigCall) Return(arg0 error) *MockControllerConfigServiceUpdateControllerConfigCall
- type MockRelation
- func (m *MockRelation) ApplicationSettings(arg0 string) (map[string]any, error)
- func (m *MockRelation) EXPECT() *MockRelationMockRecorder
- func (m *MockRelation) Endpoint(arg0 string) (state.Endpoint, error)
- func (m *MockRelation) ModelUUID() string
- func (m *MockRelation) RelatedEndpoints(arg0 string) ([]state.Endpoint, error)
- type MockRelationApplicationSettingsCall
- func (c *MockRelationApplicationSettingsCall) Do(f func(string) (map[string]any, error)) *MockRelationApplicationSettingsCall
- func (c *MockRelationApplicationSettingsCall) DoAndReturn(f func(string) (map[string]any, error)) *MockRelationApplicationSettingsCall
- func (c *MockRelationApplicationSettingsCall) Return(arg0 map[string]any, arg1 error) *MockRelationApplicationSettingsCall
- type MockRelationEndpointCall
- func (c *MockRelationEndpointCall) Do(f func(string) (state.Endpoint, error)) *MockRelationEndpointCall
- func (c *MockRelationEndpointCall) DoAndReturn(f func(string) (state.Endpoint, error)) *MockRelationEndpointCall
- func (c *MockRelationEndpointCall) Return(arg0 state.Endpoint, arg1 error) *MockRelationEndpointCall
- type MockRelationMockRecorder
- func (mr *MockRelationMockRecorder) ApplicationSettings(arg0 any) *MockRelationApplicationSettingsCall
- func (mr *MockRelationMockRecorder) Endpoint(arg0 any) *MockRelationEndpointCall
- func (mr *MockRelationMockRecorder) ModelUUID() *MockRelationModelUUIDCall
- func (mr *MockRelationMockRecorder) RelatedEndpoints(arg0 any) *MockRelationRelatedEndpointsCall
- type MockRelationModelUUIDCall
- type MockRelationRelatedEndpointsCall
- func (c *MockRelationRelatedEndpointsCall) Do(f func(string) ([]state.Endpoint, error)) *MockRelationRelatedEndpointsCall
- func (c *MockRelationRelatedEndpointsCall) DoAndReturn(f func(string) ([]state.Endpoint, error)) *MockRelationRelatedEndpointsCall
- func (c *MockRelationRelatedEndpointsCall) Return(arg0 []state.Endpoint, arg1 error) *MockRelationRelatedEndpointsCall
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockApplication ¶
type MockApplication struct {
// contains filtered or unexported fields
}
MockApplication is a mock of Application interface.
func NewMockApplication ¶
func NewMockApplication(ctrl *gomock.Controller) *MockApplication
NewMockApplication creates a new mock instance.
func (*MockApplication) CharmConfig ¶
func (m *MockApplication) CharmConfig() (charm.Settings, error)
CharmConfig mocks base method.
func (*MockApplication) EXPECT ¶
func (m *MockApplication) EXPECT() *MockApplicationMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockApplication) Relations ¶
func (m *MockApplication) Relations() ([]controller.Relation, error)
Relations mocks base method.
type MockApplicationCharmConfigCall ¶
MockApplicationCharmConfigCall wrap *gomock.Call
func (*MockApplicationCharmConfigCall) Do ¶
func (c *MockApplicationCharmConfigCall) Do(f func() (charm.Settings, error)) *MockApplicationCharmConfigCall
Do rewrite *gomock.Call.Do
func (*MockApplicationCharmConfigCall) DoAndReturn ¶
func (c *MockApplicationCharmConfigCall) DoAndReturn(f func() (charm.Settings, error)) *MockApplicationCharmConfigCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockApplicationCharmConfigCall) Return ¶
func (c *MockApplicationCharmConfigCall) Return(arg0 charm.Settings, arg1 error) *MockApplicationCharmConfigCall
Return rewrite *gomock.Call.Return
type MockApplicationMockRecorder ¶
type MockApplicationMockRecorder struct {
// contains filtered or unexported fields
}
MockApplicationMockRecorder is the mock recorder for MockApplication.
func (*MockApplicationMockRecorder) CharmConfig ¶
func (mr *MockApplicationMockRecorder) CharmConfig() *MockApplicationCharmConfigCall
CharmConfig indicates an expected call of CharmConfig.
func (*MockApplicationMockRecorder) Name ¶
func (mr *MockApplicationMockRecorder) Name() *MockApplicationNameCall
Name indicates an expected call of Name.
func (*MockApplicationMockRecorder) Relations ¶
func (mr *MockApplicationMockRecorder) Relations() *MockApplicationRelationsCall
Relations indicates an expected call of Relations.
type MockApplicationNameCall ¶
MockApplicationNameCall wrap *gomock.Call
func (*MockApplicationNameCall) Do ¶
func (c *MockApplicationNameCall) Do(f func() string) *MockApplicationNameCall
Do rewrite *gomock.Call.Do
func (*MockApplicationNameCall) DoAndReturn ¶
func (c *MockApplicationNameCall) DoAndReturn(f func() string) *MockApplicationNameCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockApplicationNameCall) Return ¶
func (c *MockApplicationNameCall) Return(arg0 string) *MockApplicationNameCall
Return rewrite *gomock.Call.Return
type MockApplicationRelationsCall ¶
MockApplicationRelationsCall wrap *gomock.Call
func (*MockApplicationRelationsCall) Do ¶
func (c *MockApplicationRelationsCall) Do(f func() ([]controller.Relation, error)) *MockApplicationRelationsCall
Do rewrite *gomock.Call.Do
func (*MockApplicationRelationsCall) DoAndReturn ¶
func (c *MockApplicationRelationsCall) DoAndReturn(f func() ([]controller.Relation, error)) *MockApplicationRelationsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockApplicationRelationsCall) Return ¶
func (c *MockApplicationRelationsCall) Return(arg0 []controller.Relation, arg1 error) *MockApplicationRelationsCall
Return rewrite *gomock.Call.Return
type MockBackend ¶
type MockBackend struct {
// contains filtered or unexported fields
}
MockBackend is a mock of Backend interface.
func NewMockBackend ¶
func NewMockBackend(ctrl *gomock.Controller) *MockBackend
NewMockBackend creates a new mock instance.
func (*MockBackend) AllModelUUIDs ¶
func (m *MockBackend) AllModelUUIDs() ([]string, error)
AllModelUUIDs mocks base method.
func (*MockBackend) Application ¶
func (m *MockBackend) Application(arg0 string) (controller.Application, error)
Application mocks base method.
func (*MockBackend) ControllerModelUUID ¶
func (m *MockBackend) ControllerModelUUID() string
ControllerModelUUID mocks base method.
func (*MockBackend) EXPECT ¶
func (m *MockBackend) EXPECT() *MockBackendMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockBackend) Model ¶
func (m *MockBackend) Model() (*state.Model, error)
Model mocks base method.
func (*MockBackend) ModelExists ¶
func (m *MockBackend) ModelExists(arg0 string) (bool, error)
ModelExists mocks base method.
func (*MockBackend) MongoVersion ¶
func (m *MockBackend) MongoVersion() (string, error)
MongoVersion mocks base method.
type MockBackendAllModelUUIDsCall ¶
MockBackendAllModelUUIDsCall wrap *gomock.Call
func (*MockBackendAllModelUUIDsCall) Do ¶
func (c *MockBackendAllModelUUIDsCall) Do(f func() ([]string, error)) *MockBackendAllModelUUIDsCall
Do rewrite *gomock.Call.Do
func (*MockBackendAllModelUUIDsCall) DoAndReturn ¶
func (c *MockBackendAllModelUUIDsCall) DoAndReturn(f func() ([]string, error)) *MockBackendAllModelUUIDsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockBackendAllModelUUIDsCall) Return ¶
func (c *MockBackendAllModelUUIDsCall) Return(arg0 []string, arg1 error) *MockBackendAllModelUUIDsCall
Return rewrite *gomock.Call.Return
type MockBackendApplicationCall ¶
MockBackendApplicationCall wrap *gomock.Call
func (*MockBackendApplicationCall) Do ¶
func (c *MockBackendApplicationCall) Do(f func(string) (controller.Application, error)) *MockBackendApplicationCall
Do rewrite *gomock.Call.Do
func (*MockBackendApplicationCall) DoAndReturn ¶
func (c *MockBackendApplicationCall) DoAndReturn(f func(string) (controller.Application, error)) *MockBackendApplicationCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockBackendApplicationCall) Return ¶
func (c *MockBackendApplicationCall) Return(arg0 controller.Application, arg1 error) *MockBackendApplicationCall
Return rewrite *gomock.Call.Return
type MockBackendControllerModelUUIDCall ¶
MockBackendControllerModelUUIDCall wrap *gomock.Call
func (*MockBackendControllerModelUUIDCall) Do ¶
func (c *MockBackendControllerModelUUIDCall) Do(f func() string) *MockBackendControllerModelUUIDCall
Do rewrite *gomock.Call.Do
func (*MockBackendControllerModelUUIDCall) DoAndReturn ¶
func (c *MockBackendControllerModelUUIDCall) DoAndReturn(f func() string) *MockBackendControllerModelUUIDCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockBackendControllerModelUUIDCall) Return ¶
func (c *MockBackendControllerModelUUIDCall) Return(arg0 string) *MockBackendControllerModelUUIDCall
Return rewrite *gomock.Call.Return
type MockBackendMockRecorder ¶
type MockBackendMockRecorder struct {
// contains filtered or unexported fields
}
MockBackendMockRecorder is the mock recorder for MockBackend.
func (*MockBackendMockRecorder) AllModelUUIDs ¶
func (mr *MockBackendMockRecorder) AllModelUUIDs() *MockBackendAllModelUUIDsCall
AllModelUUIDs indicates an expected call of AllModelUUIDs.
func (*MockBackendMockRecorder) Application ¶
func (mr *MockBackendMockRecorder) Application(arg0 any) *MockBackendApplicationCall
Application indicates an expected call of Application.
func (*MockBackendMockRecorder) ControllerModelUUID ¶
func (mr *MockBackendMockRecorder) ControllerModelUUID() *MockBackendControllerModelUUIDCall
ControllerModelUUID indicates an expected call of ControllerModelUUID.
func (*MockBackendMockRecorder) Model ¶
func (mr *MockBackendMockRecorder) Model() *MockBackendModelCall
Model indicates an expected call of Model.
func (*MockBackendMockRecorder) ModelExists ¶
func (mr *MockBackendMockRecorder) ModelExists(arg0 any) *MockBackendModelExistsCall
ModelExists indicates an expected call of ModelExists.
func (*MockBackendMockRecorder) MongoVersion ¶
func (mr *MockBackendMockRecorder) MongoVersion() *MockBackendMongoVersionCall
MongoVersion indicates an expected call of MongoVersion.
type MockBackendModelCall ¶
MockBackendModelCall wrap *gomock.Call
func (*MockBackendModelCall) Do ¶
func (c *MockBackendModelCall) Do(f func() (*state.Model, error)) *MockBackendModelCall
Do rewrite *gomock.Call.Do
func (*MockBackendModelCall) DoAndReturn ¶
func (c *MockBackendModelCall) DoAndReturn(f func() (*state.Model, error)) *MockBackendModelCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockBackendModelCall) Return ¶
func (c *MockBackendModelCall) Return(arg0 *state.Model, arg1 error) *MockBackendModelCall
Return rewrite *gomock.Call.Return
type MockBackendModelExistsCall ¶
MockBackendModelExistsCall wrap *gomock.Call
func (*MockBackendModelExistsCall) Do ¶
func (c *MockBackendModelExistsCall) Do(f func(string) (bool, error)) *MockBackendModelExistsCall
Do rewrite *gomock.Call.Do
func (*MockBackendModelExistsCall) DoAndReturn ¶
func (c *MockBackendModelExistsCall) DoAndReturn(f func(string) (bool, error)) *MockBackendModelExistsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockBackendModelExistsCall) Return ¶
func (c *MockBackendModelExistsCall) Return(arg0 bool, arg1 error) *MockBackendModelExistsCall
Return rewrite *gomock.Call.Return
type MockBackendMongoVersionCall ¶
MockBackendMongoVersionCall wrap *gomock.Call
func (*MockBackendMongoVersionCall) Do ¶
func (c *MockBackendMongoVersionCall) Do(f func() (string, error)) *MockBackendMongoVersionCall
Do rewrite *gomock.Call.Do
func (*MockBackendMongoVersionCall) DoAndReturn ¶
func (c *MockBackendMongoVersionCall) DoAndReturn(f func() (string, error)) *MockBackendMongoVersionCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockBackendMongoVersionCall) Return ¶
func (c *MockBackendMongoVersionCall) Return(arg0 string, arg1 error) *MockBackendMongoVersionCall
Return rewrite *gomock.Call.Return
type MockControllerAccessService ¶
type MockControllerAccessService struct {
// contains filtered or unexported fields
}
MockControllerAccessService is a mock of ControllerAccessService interface.
func NewMockControllerAccessService ¶
func NewMockControllerAccessService(ctrl *gomock.Controller) *MockControllerAccessService
NewMockControllerAccessService creates a new mock instance.
func (*MockControllerAccessService) EXPECT ¶
func (m *MockControllerAccessService) EXPECT() *MockControllerAccessServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockControllerAccessService) LastModelLogin ¶
func (m *MockControllerAccessService) LastModelLogin(arg0 context.Context, arg1 user.Name, arg2 model.UUID) (time.Time, error)
LastModelLogin mocks base method.
func (*MockControllerAccessService) ReadUserAccessLevelForTarget ¶
func (m *MockControllerAccessService) ReadUserAccessLevelForTarget(arg0 context.Context, arg1 user.Name, arg2 permission.ID) (permission.Access, error)
ReadUserAccessLevelForTarget mocks base method.
func (*MockControllerAccessService) UpdatePermission ¶
func (m *MockControllerAccessService) UpdatePermission(arg0 context.Context, arg1 access.UpdatePermissionArgs) error
UpdatePermission mocks base method.
type MockControllerAccessServiceLastModelLoginCall ¶
MockControllerAccessServiceLastModelLoginCall wrap *gomock.Call
func (*MockControllerAccessServiceLastModelLoginCall) Do ¶
func (c *MockControllerAccessServiceLastModelLoginCall) Do(f func(context.Context, user.Name, model.UUID) (time.Time, error)) *MockControllerAccessServiceLastModelLoginCall
Do rewrite *gomock.Call.Do
func (*MockControllerAccessServiceLastModelLoginCall) DoAndReturn ¶
func (c *MockControllerAccessServiceLastModelLoginCall) DoAndReturn(f func(context.Context, user.Name, model.UUID) (time.Time, error)) *MockControllerAccessServiceLastModelLoginCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockControllerAccessServiceLastModelLoginCall) Return ¶
func (c *MockControllerAccessServiceLastModelLoginCall) Return(arg0 time.Time, arg1 error) *MockControllerAccessServiceLastModelLoginCall
Return rewrite *gomock.Call.Return
type MockControllerAccessServiceMockRecorder ¶
type MockControllerAccessServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockControllerAccessServiceMockRecorder is the mock recorder for MockControllerAccessService.
func (*MockControllerAccessServiceMockRecorder) LastModelLogin ¶
func (mr *MockControllerAccessServiceMockRecorder) LastModelLogin(arg0, arg1, arg2 any) *MockControllerAccessServiceLastModelLoginCall
LastModelLogin indicates an expected call of LastModelLogin.
func (*MockControllerAccessServiceMockRecorder) ReadUserAccessLevelForTarget ¶
func (mr *MockControllerAccessServiceMockRecorder) ReadUserAccessLevelForTarget(arg0, arg1, arg2 any) *MockControllerAccessServiceReadUserAccessLevelForTargetCall
ReadUserAccessLevelForTarget indicates an expected call of ReadUserAccessLevelForTarget.
func (*MockControllerAccessServiceMockRecorder) UpdatePermission ¶
func (mr *MockControllerAccessServiceMockRecorder) UpdatePermission(arg0, arg1 any) *MockControllerAccessServiceUpdatePermissionCall
UpdatePermission indicates an expected call of UpdatePermission.
type MockControllerAccessServiceReadUserAccessLevelForTargetCall ¶
MockControllerAccessServiceReadUserAccessLevelForTargetCall wrap *gomock.Call
func (*MockControllerAccessServiceReadUserAccessLevelForTargetCall) Do ¶
func (c *MockControllerAccessServiceReadUserAccessLevelForTargetCall) Do(f func(context.Context, user.Name, permission.ID) (permission.Access, error)) *MockControllerAccessServiceReadUserAccessLevelForTargetCall
Do rewrite *gomock.Call.Do
func (*MockControllerAccessServiceReadUserAccessLevelForTargetCall) DoAndReturn ¶
func (c *MockControllerAccessServiceReadUserAccessLevelForTargetCall) DoAndReturn(f func(context.Context, user.Name, permission.ID) (permission.Access, error)) *MockControllerAccessServiceReadUserAccessLevelForTargetCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockControllerAccessServiceReadUserAccessLevelForTargetCall) Return ¶
func (c *MockControllerAccessServiceReadUserAccessLevelForTargetCall) Return(arg0 permission.Access, arg1 error) *MockControllerAccessServiceReadUserAccessLevelForTargetCall
Return rewrite *gomock.Call.Return
type MockControllerAccessServiceUpdatePermissionCall ¶
MockControllerAccessServiceUpdatePermissionCall wrap *gomock.Call
func (*MockControllerAccessServiceUpdatePermissionCall) Do ¶
func (c *MockControllerAccessServiceUpdatePermissionCall) Do(f func(context.Context, access.UpdatePermissionArgs) error) *MockControllerAccessServiceUpdatePermissionCall
Do rewrite *gomock.Call.Do
func (*MockControllerAccessServiceUpdatePermissionCall) DoAndReturn ¶
func (c *MockControllerAccessServiceUpdatePermissionCall) DoAndReturn(f func(context.Context, access.UpdatePermissionArgs) error) *MockControllerAccessServiceUpdatePermissionCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockControllerAccessServiceUpdatePermissionCall) Return ¶
func (c *MockControllerAccessServiceUpdatePermissionCall) Return(arg0 error) *MockControllerAccessServiceUpdatePermissionCall
Return rewrite *gomock.Call.Return
type MockControllerConfigService ¶
type MockControllerConfigService struct {
// contains filtered or unexported fields
}
MockControllerConfigService is a mock of ControllerConfigService interface.
func NewMockControllerConfigService ¶
func NewMockControllerConfigService(ctrl *gomock.Controller) *MockControllerConfigService
NewMockControllerConfigService creates a new mock instance.
func (*MockControllerConfigService) ControllerConfig ¶
func (m *MockControllerConfigService) ControllerConfig(arg0 context.Context) (controller.Config, error)
ControllerConfig mocks base method.
func (*MockControllerConfigService) EXPECT ¶
func (m *MockControllerConfigService) EXPECT() *MockControllerConfigServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockControllerConfigService) UpdateControllerConfig ¶
func (m *MockControllerConfigService) UpdateControllerConfig(arg0 context.Context, arg1 controller.Config, arg2 []string) error
UpdateControllerConfig mocks base method.
type MockControllerConfigServiceControllerConfigCall ¶
MockControllerConfigServiceControllerConfigCall wrap *gomock.Call
func (*MockControllerConfigServiceControllerConfigCall) Do ¶
func (c *MockControllerConfigServiceControllerConfigCall) Do(f func(context.Context) (controller.Config, error)) *MockControllerConfigServiceControllerConfigCall
Do rewrite *gomock.Call.Do
func (*MockControllerConfigServiceControllerConfigCall) DoAndReturn ¶
func (c *MockControllerConfigServiceControllerConfigCall) DoAndReturn(f func(context.Context) (controller.Config, error)) *MockControllerConfigServiceControllerConfigCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockControllerConfigServiceControllerConfigCall) Return ¶
func (c *MockControllerConfigServiceControllerConfigCall) Return(arg0 controller.Config, arg1 error) *MockControllerConfigServiceControllerConfigCall
Return rewrite *gomock.Call.Return
type MockControllerConfigServiceMockRecorder ¶
type MockControllerConfigServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockControllerConfigServiceMockRecorder is the mock recorder for MockControllerConfigService.
func (*MockControllerConfigServiceMockRecorder) ControllerConfig ¶
func (mr *MockControllerConfigServiceMockRecorder) ControllerConfig(arg0 any) *MockControllerConfigServiceControllerConfigCall
ControllerConfig indicates an expected call of ControllerConfig.
func (*MockControllerConfigServiceMockRecorder) UpdateControllerConfig ¶
func (mr *MockControllerConfigServiceMockRecorder) UpdateControllerConfig(arg0, arg1, arg2 any) *MockControllerConfigServiceUpdateControllerConfigCall
UpdateControllerConfig indicates an expected call of UpdateControllerConfig.
type MockControllerConfigServiceUpdateControllerConfigCall ¶
MockControllerConfigServiceUpdateControllerConfigCall wrap *gomock.Call
func (*MockControllerConfigServiceUpdateControllerConfigCall) Do ¶
func (c *MockControllerConfigServiceUpdateControllerConfigCall) Do(f func(context.Context, controller.Config, []string) error) *MockControllerConfigServiceUpdateControllerConfigCall
Do rewrite *gomock.Call.Do
func (*MockControllerConfigServiceUpdateControllerConfigCall) DoAndReturn ¶
func (c *MockControllerConfigServiceUpdateControllerConfigCall) DoAndReturn(f func(context.Context, controller.Config, []string) error) *MockControllerConfigServiceUpdateControllerConfigCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockControllerConfigServiceUpdateControllerConfigCall) Return ¶
func (c *MockControllerConfigServiceUpdateControllerConfigCall) Return(arg0 error) *MockControllerConfigServiceUpdateControllerConfigCall
Return rewrite *gomock.Call.Return
type MockRelation ¶
type MockRelation struct {
// contains filtered or unexported fields
}
MockRelation is a mock of Relation interface.
func NewMockRelation ¶
func NewMockRelation(ctrl *gomock.Controller) *MockRelation
NewMockRelation creates a new mock instance.
func (*MockRelation) ApplicationSettings ¶
func (m *MockRelation) ApplicationSettings(arg0 string) (map[string]any, error)
ApplicationSettings mocks base method.
func (*MockRelation) EXPECT ¶
func (m *MockRelation) EXPECT() *MockRelationMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRelation) Endpoint ¶
func (m *MockRelation) Endpoint(arg0 string) (state.Endpoint, error)
Endpoint mocks base method.
func (*MockRelation) ModelUUID ¶
func (m *MockRelation) ModelUUID() string
ModelUUID mocks base method.
func (*MockRelation) RelatedEndpoints ¶
func (m *MockRelation) RelatedEndpoints(arg0 string) ([]state.Endpoint, error)
RelatedEndpoints mocks base method.
type MockRelationApplicationSettingsCall ¶
MockRelationApplicationSettingsCall wrap *gomock.Call
func (*MockRelationApplicationSettingsCall) Do ¶
func (c *MockRelationApplicationSettingsCall) Do(f func(string) (map[string]any, error)) *MockRelationApplicationSettingsCall
Do rewrite *gomock.Call.Do
func (*MockRelationApplicationSettingsCall) DoAndReturn ¶
func (c *MockRelationApplicationSettingsCall) DoAndReturn(f func(string) (map[string]any, error)) *MockRelationApplicationSettingsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockRelationApplicationSettingsCall) Return ¶
func (c *MockRelationApplicationSettingsCall) Return(arg0 map[string]any, arg1 error) *MockRelationApplicationSettingsCall
Return rewrite *gomock.Call.Return
type MockRelationEndpointCall ¶
MockRelationEndpointCall wrap *gomock.Call
func (*MockRelationEndpointCall) Do ¶
func (c *MockRelationEndpointCall) Do(f func(string) (state.Endpoint, error)) *MockRelationEndpointCall
Do rewrite *gomock.Call.Do
func (*MockRelationEndpointCall) DoAndReturn ¶
func (c *MockRelationEndpointCall) DoAndReturn(f func(string) (state.Endpoint, error)) *MockRelationEndpointCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockRelationEndpointCall) Return ¶
func (c *MockRelationEndpointCall) Return(arg0 state.Endpoint, arg1 error) *MockRelationEndpointCall
Return rewrite *gomock.Call.Return
type MockRelationMockRecorder ¶
type MockRelationMockRecorder struct {
// contains filtered or unexported fields
}
MockRelationMockRecorder is the mock recorder for MockRelation.
func (*MockRelationMockRecorder) ApplicationSettings ¶
func (mr *MockRelationMockRecorder) ApplicationSettings(arg0 any) *MockRelationApplicationSettingsCall
ApplicationSettings indicates an expected call of ApplicationSettings.
func (*MockRelationMockRecorder) Endpoint ¶
func (mr *MockRelationMockRecorder) Endpoint(arg0 any) *MockRelationEndpointCall
Endpoint indicates an expected call of Endpoint.
func (*MockRelationMockRecorder) ModelUUID ¶
func (mr *MockRelationMockRecorder) ModelUUID() *MockRelationModelUUIDCall
ModelUUID indicates an expected call of ModelUUID.
func (*MockRelationMockRecorder) RelatedEndpoints ¶
func (mr *MockRelationMockRecorder) RelatedEndpoints(arg0 any) *MockRelationRelatedEndpointsCall
RelatedEndpoints indicates an expected call of RelatedEndpoints.
type MockRelationModelUUIDCall ¶
MockRelationModelUUIDCall wrap *gomock.Call
func (*MockRelationModelUUIDCall) Do ¶
func (c *MockRelationModelUUIDCall) Do(f func() string) *MockRelationModelUUIDCall
Do rewrite *gomock.Call.Do
func (*MockRelationModelUUIDCall) DoAndReturn ¶
func (c *MockRelationModelUUIDCall) DoAndReturn(f func() string) *MockRelationModelUUIDCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockRelationModelUUIDCall) Return ¶
func (c *MockRelationModelUUIDCall) Return(arg0 string) *MockRelationModelUUIDCall
Return rewrite *gomock.Call.Return
type MockRelationRelatedEndpointsCall ¶
MockRelationRelatedEndpointsCall wrap *gomock.Call
func (*MockRelationRelatedEndpointsCall) Do ¶
func (c *MockRelationRelatedEndpointsCall) Do(f func(string) ([]state.Endpoint, error)) *MockRelationRelatedEndpointsCall
Do rewrite *gomock.Call.Do
func (*MockRelationRelatedEndpointsCall) DoAndReturn ¶
func (c *MockRelationRelatedEndpointsCall) DoAndReturn(f func(string) ([]state.Endpoint, error)) *MockRelationRelatedEndpointsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockRelationRelatedEndpointsCall) Return ¶
func (c *MockRelationRelatedEndpointsCall) Return(arg0 []state.Endpoint, arg1 error) *MockRelationRelatedEndpointsCall
Return rewrite *gomock.Call.Return