mocks

package
v0.0.0-...-b9bb202 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: AGPL-3.0 Imports: 12 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 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

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

func (*MockApplication) Name

func (m *MockApplication) Name() string

Name mocks base method.

func (*MockApplication) Relations

func (m *MockApplication) Relations() ([]controller.Relation, error)

Relations mocks base method.

type MockApplicationCharmConfigCall

type MockApplicationCharmConfigCall struct {
	*gomock.Call
}

MockApplicationCharmConfigCall wrap *gomock.Call

func (*MockApplicationCharmConfigCall) Do

Do rewrite *gomock.Call.Do

func (*MockApplicationCharmConfigCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockApplicationCharmConfigCall) Return

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

CharmConfig indicates an expected call of CharmConfig.

func (*MockApplicationMockRecorder) Name

Name indicates an expected call of Name.

func (*MockApplicationMockRecorder) Relations

Relations indicates an expected call of Relations.

type MockApplicationNameCall

type MockApplicationNameCall struct {
	*gomock.Call
}

MockApplicationNameCall wrap *gomock.Call

func (*MockApplicationNameCall) Do

Do rewrite *gomock.Call.Do

func (*MockApplicationNameCall) DoAndReturn

func (c *MockApplicationNameCall) DoAndReturn(f func() string) *MockApplicationNameCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockApplicationNameCall) Return

Return rewrite *gomock.Call.Return

type MockApplicationRelationsCall

type MockApplicationRelationsCall struct {
	*gomock.Call
}

MockApplicationRelationsCall wrap *gomock.Call

func (*MockApplicationRelationsCall) Do

Do rewrite *gomock.Call.Do

func (*MockApplicationRelationsCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockApplicationRelationsCall) Return

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

type MockBackendAllModelUUIDsCall struct {
	*gomock.Call
}

MockBackendAllModelUUIDsCall wrap *gomock.Call

func (*MockBackendAllModelUUIDsCall) Do

Do rewrite *gomock.Call.Do

func (*MockBackendAllModelUUIDsCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockBackendAllModelUUIDsCall) Return

Return rewrite *gomock.Call.Return

type MockBackendApplicationCall

type MockBackendApplicationCall struct {
	*gomock.Call
}

MockBackendApplicationCall wrap *gomock.Call

func (*MockBackendApplicationCall) Do

Do rewrite *gomock.Call.Do

func (*MockBackendApplicationCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockBackendApplicationCall) Return

Return rewrite *gomock.Call.Return

type MockBackendControllerModelUUIDCall

type MockBackendControllerModelUUIDCall struct {
	*gomock.Call
}

MockBackendControllerModelUUIDCall wrap *gomock.Call

func (*MockBackendControllerModelUUIDCall) Do

Do rewrite *gomock.Call.Do

func (*MockBackendControllerModelUUIDCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockBackendControllerModelUUIDCall) Return

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

AllModelUUIDs indicates an expected call of AllModelUUIDs.

func (*MockBackendMockRecorder) Application

Application indicates an expected call of Application.

func (*MockBackendMockRecorder) ControllerModelUUID

ControllerModelUUID indicates an expected call of ControllerModelUUID.

func (*MockBackendMockRecorder) Model

Model indicates an expected call of Model.

func (*MockBackendMockRecorder) ModelExists

ModelExists indicates an expected call of ModelExists.

func (*MockBackendMockRecorder) MongoVersion

MongoVersion indicates an expected call of MongoVersion.

type MockBackendModelCall

type MockBackendModelCall struct {
	*gomock.Call
}

MockBackendModelCall wrap *gomock.Call

func (*MockBackendModelCall) Do

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

type MockBackendModelExistsCall struct {
	*gomock.Call
}

MockBackendModelExistsCall wrap *gomock.Call

func (*MockBackendModelExistsCall) Do

Do rewrite *gomock.Call.Do

func (*MockBackendModelExistsCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockBackendModelExistsCall) Return

Return rewrite *gomock.Call.Return

type MockBackendMongoVersionCall

type MockBackendMongoVersionCall struct {
	*gomock.Call
}

MockBackendMongoVersionCall wrap *gomock.Call

func (*MockBackendMongoVersionCall) Do

Do rewrite *gomock.Call.Do

func (*MockBackendMongoVersionCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockBackendMongoVersionCall) Return

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

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

UpdatePermission mocks base method.

type MockControllerAccessServiceLastModelLoginCall

type MockControllerAccessServiceLastModelLoginCall struct {
	*gomock.Call
}

MockControllerAccessServiceLastModelLoginCall wrap *gomock.Call

func (*MockControllerAccessServiceLastModelLoginCall) Do

Do rewrite *gomock.Call.Do

func (*MockControllerAccessServiceLastModelLoginCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockControllerAccessServiceLastModelLoginCall) Return

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

LastModelLogin indicates an expected call of LastModelLogin.

func (*MockControllerAccessServiceMockRecorder) ReadUserAccessLevelForTarget

ReadUserAccessLevelForTarget indicates an expected call of ReadUserAccessLevelForTarget.

func (*MockControllerAccessServiceMockRecorder) UpdatePermission

UpdatePermission indicates an expected call of UpdatePermission.

type MockControllerAccessServiceReadUserAccessLevelForTargetCall

type MockControllerAccessServiceReadUserAccessLevelForTargetCall struct {
	*gomock.Call
}

MockControllerAccessServiceReadUserAccessLevelForTargetCall wrap *gomock.Call

func (*MockControllerAccessServiceReadUserAccessLevelForTargetCall) Do

Do rewrite *gomock.Call.Do

func (*MockControllerAccessServiceReadUserAccessLevelForTargetCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockControllerAccessServiceReadUserAccessLevelForTargetCall) Return

Return rewrite *gomock.Call.Return

type MockControllerAccessServiceUpdatePermissionCall

type MockControllerAccessServiceUpdatePermissionCall struct {
	*gomock.Call
}

MockControllerAccessServiceUpdatePermissionCall wrap *gomock.Call

func (*MockControllerAccessServiceUpdatePermissionCall) Do

Do rewrite *gomock.Call.Do

func (*MockControllerAccessServiceUpdatePermissionCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockControllerAccessServiceUpdatePermissionCall) Return

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

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

type MockControllerConfigServiceControllerConfigCall struct {
	*gomock.Call
}

MockControllerConfigServiceControllerConfigCall wrap *gomock.Call

func (*MockControllerConfigServiceControllerConfigCall) Do

Do rewrite *gomock.Call.Do

func (*MockControllerConfigServiceControllerConfigCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockControllerConfigServiceControllerConfigCall) Return

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

ControllerConfig indicates an expected call of ControllerConfig.

func (*MockControllerConfigServiceMockRecorder) UpdateControllerConfig

UpdateControllerConfig indicates an expected call of UpdateControllerConfig.

type MockControllerConfigServiceUpdateControllerConfigCall

type MockControllerConfigServiceUpdateControllerConfigCall struct {
	*gomock.Call
}

MockControllerConfigServiceUpdateControllerConfigCall wrap *gomock.Call

func (*MockControllerConfigServiceUpdateControllerConfigCall) Do

Do rewrite *gomock.Call.Do

func (*MockControllerConfigServiceUpdateControllerConfigCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockControllerConfigServiceUpdateControllerConfigCall) Return

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

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

type MockRelationApplicationSettingsCall struct {
	*gomock.Call
}

MockRelationApplicationSettingsCall wrap *gomock.Call

func (*MockRelationApplicationSettingsCall) Do

Do rewrite *gomock.Call.Do

func (*MockRelationApplicationSettingsCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockRelationApplicationSettingsCall) Return

Return rewrite *gomock.Call.Return

type MockRelationEndpointCall

type MockRelationEndpointCall struct {
	*gomock.Call
}

MockRelationEndpointCall wrap *gomock.Call

func (*MockRelationEndpointCall) Do

Do rewrite *gomock.Call.Do

func (*MockRelationEndpointCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockRelationEndpointCall) Return

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

Endpoint indicates an expected call of Endpoint.

func (*MockRelationMockRecorder) ModelUUID

ModelUUID indicates an expected call of ModelUUID.

func (*MockRelationMockRecorder) RelatedEndpoints

RelatedEndpoints indicates an expected call of RelatedEndpoints.

type MockRelationModelUUIDCall

type MockRelationModelUUIDCall struct {
	*gomock.Call
}

MockRelationModelUUIDCall wrap *gomock.Call

func (*MockRelationModelUUIDCall) Do

Do rewrite *gomock.Call.Do

func (*MockRelationModelUUIDCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockRelationModelUUIDCall) Return

Return rewrite *gomock.Call.Return

type MockRelationRelatedEndpointsCall

type MockRelationRelatedEndpointsCall struct {
	*gomock.Call
}

MockRelationRelatedEndpointsCall wrap *gomock.Call

func (*MockRelationRelatedEndpointsCall) Do

Do rewrite *gomock.Call.Do

func (*MockRelationRelatedEndpointsCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockRelationRelatedEndpointsCall) Return

Return rewrite *gomock.Call.Return

Jump to

Keyboard shortcuts

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