mocks

package
v0.0.0-...-b0bff92 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2021 License: AGPL-3.0 Imports: 8 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 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(arg0 string) (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 MockApplicationMockRecorder

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

MockApplicationMockRecorder is the mock recorder for MockApplication.

func (*MockApplicationMockRecorder) CharmConfig

func (mr *MockApplicationMockRecorder) CharmConfig(arg0 interface{}) *gomock.Call

CharmConfig indicates an expected call of CharmConfig.

func (*MockApplicationMockRecorder) Name

Name indicates an expected call of Name.

func (*MockApplicationMockRecorder) Relations

func (mr *MockApplicationMockRecorder) Relations() *gomock.Call

Relations indicates an expected call of Relations.

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) AddControllerUser

func (m *MockBackend) AddControllerUser(arg0 state.UserAccessSpec) (permission.UserAccess, error)

AddControllerUser mocks base method.

func (*MockBackend) AllBlocksForController

func (m *MockBackend) AllBlocksForController() ([]state.Block, error)

AllBlocksForController mocks base method.

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) ControllerConfig

func (m *MockBackend) ControllerConfig() (controller0.Config, error)

ControllerConfig mocks base method.

func (*MockBackend) ControllerInfo

func (m *MockBackend) ControllerInfo() (*state.ControllerInfo, error)

ControllerInfo mocks base method.

func (*MockBackend) ControllerModelUUID

func (m *MockBackend) ControllerModelUUID() string

ControllerModelUUID mocks base method.

func (*MockBackend) ControllerTag

func (m *MockBackend) ControllerTag() names.ControllerTag

ControllerTag mocks base method.

func (*MockBackend) CreateCloudAccess

func (m *MockBackend) CreateCloudAccess(arg0 string, arg1 names.UserTag, arg2 permission.Access) error

CreateCloudAccess 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) GetCloudAccess

func (m *MockBackend) GetCloudAccess(arg0 string, arg1 names.UserTag) (permission.Access, error)

GetCloudAccess mocks base method.

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.

func (*MockBackend) RemoveAllBlocksForController

func (m *MockBackend) RemoveAllBlocksForController() error

RemoveAllBlocksForController mocks base method.

func (*MockBackend) RemoveCloudAccess

func (m *MockBackend) RemoveCloudAccess(arg0 string, arg1 names.UserTag) error

RemoveCloudAccess mocks base method.

func (*MockBackend) RemoveUserAccess

func (m *MockBackend) RemoveUserAccess(arg0 names.UserTag, arg1 names.Tag) error

RemoveUserAccess mocks base method.

func (*MockBackend) SetUserAccess

func (m *MockBackend) SetUserAccess(arg0 names.UserTag, arg1 names.Tag, arg2 permission.Access) (permission.UserAccess, error)

SetUserAccess mocks base method.

func (*MockBackend) UpdateControllerConfig

func (m *MockBackend) UpdateControllerConfig(arg0 map[string]interface{}, arg1 []string) error

UpdateControllerConfig mocks base method.

func (*MockBackend) UserAccess

func (m *MockBackend) UserAccess(arg0 names.UserTag, arg1 names.Tag) (permission.UserAccess, error)

UserAccess mocks base method.

func (*MockBackend) UserPermission

func (m *MockBackend) UserPermission(arg0 names.UserTag, arg1 names.Tag) (permission.Access, error)

UserPermission mocks base method.

type MockBackendMockRecorder

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

MockBackendMockRecorder is the mock recorder for MockBackend.

func (*MockBackendMockRecorder) AddControllerUser

func (mr *MockBackendMockRecorder) AddControllerUser(arg0 interface{}) *gomock.Call

AddControllerUser indicates an expected call of AddControllerUser.

func (*MockBackendMockRecorder) AllBlocksForController

func (mr *MockBackendMockRecorder) AllBlocksForController() *gomock.Call

AllBlocksForController indicates an expected call of AllBlocksForController.

func (*MockBackendMockRecorder) AllModelUUIDs

func (mr *MockBackendMockRecorder) AllModelUUIDs() *gomock.Call

AllModelUUIDs indicates an expected call of AllModelUUIDs.

func (*MockBackendMockRecorder) Application

func (mr *MockBackendMockRecorder) Application(arg0 interface{}) *gomock.Call

Application indicates an expected call of Application.

func (*MockBackendMockRecorder) ControllerConfig

func (mr *MockBackendMockRecorder) ControllerConfig() *gomock.Call

ControllerConfig indicates an expected call of ControllerConfig.

func (*MockBackendMockRecorder) ControllerInfo

func (mr *MockBackendMockRecorder) ControllerInfo() *gomock.Call

ControllerInfo indicates an expected call of ControllerInfo.

func (*MockBackendMockRecorder) ControllerModelUUID

func (mr *MockBackendMockRecorder) ControllerModelUUID() *gomock.Call

ControllerModelUUID indicates an expected call of ControllerModelUUID.

func (*MockBackendMockRecorder) ControllerTag

func (mr *MockBackendMockRecorder) ControllerTag() *gomock.Call

ControllerTag indicates an expected call of ControllerTag.

func (*MockBackendMockRecorder) CreateCloudAccess

func (mr *MockBackendMockRecorder) CreateCloudAccess(arg0, arg1, arg2 interface{}) *gomock.Call

CreateCloudAccess indicates an expected call of CreateCloudAccess.

func (*MockBackendMockRecorder) GetCloudAccess

func (mr *MockBackendMockRecorder) GetCloudAccess(arg0, arg1 interface{}) *gomock.Call

GetCloudAccess indicates an expected call of GetCloudAccess.

func (*MockBackendMockRecorder) Model

func (mr *MockBackendMockRecorder) Model() *gomock.Call

Model indicates an expected call of Model.

func (*MockBackendMockRecorder) ModelExists

func (mr *MockBackendMockRecorder) ModelExists(arg0 interface{}) *gomock.Call

ModelExists indicates an expected call of ModelExists.

func (*MockBackendMockRecorder) MongoVersion

func (mr *MockBackendMockRecorder) MongoVersion() *gomock.Call

MongoVersion indicates an expected call of MongoVersion.

func (*MockBackendMockRecorder) RemoveAllBlocksForController

func (mr *MockBackendMockRecorder) RemoveAllBlocksForController() *gomock.Call

RemoveAllBlocksForController indicates an expected call of RemoveAllBlocksForController.

func (*MockBackendMockRecorder) RemoveCloudAccess

func (mr *MockBackendMockRecorder) RemoveCloudAccess(arg0, arg1 interface{}) *gomock.Call

RemoveCloudAccess indicates an expected call of RemoveCloudAccess.

func (*MockBackendMockRecorder) RemoveUserAccess

func (mr *MockBackendMockRecorder) RemoveUserAccess(arg0, arg1 interface{}) *gomock.Call

RemoveUserAccess indicates an expected call of RemoveUserAccess.

func (*MockBackendMockRecorder) SetUserAccess

func (mr *MockBackendMockRecorder) SetUserAccess(arg0, arg1, arg2 interface{}) *gomock.Call

SetUserAccess indicates an expected call of SetUserAccess.

func (*MockBackendMockRecorder) UpdateControllerConfig

func (mr *MockBackendMockRecorder) UpdateControllerConfig(arg0, arg1 interface{}) *gomock.Call

UpdateControllerConfig indicates an expected call of UpdateControllerConfig.

func (*MockBackendMockRecorder) UserAccess

func (mr *MockBackendMockRecorder) UserAccess(arg0, arg1 interface{}) *gomock.Call

UserAccess indicates an expected call of UserAccess.

func (*MockBackendMockRecorder) UserPermission

func (mr *MockBackendMockRecorder) UserPermission(arg0, arg1 interface{}) *gomock.Call

UserPermission indicates an expected call of UserPermission.

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]interface{}, 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) RelatedEndpoints

func (m *MockRelation) RelatedEndpoints(arg0 string) ([]state.Endpoint, error)

RelatedEndpoints mocks base method.

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 interface{}) *gomock.Call

ApplicationSettings indicates an expected call of ApplicationSettings.

func (*MockRelationMockRecorder) Endpoint

func (mr *MockRelationMockRecorder) Endpoint(arg0 interface{}) *gomock.Call

Endpoint indicates an expected call of Endpoint.

func (*MockRelationMockRecorder) RelatedEndpoints

func (mr *MockRelationMockRecorder) RelatedEndpoints(arg0 interface{}) *gomock.Call

RelatedEndpoints indicates an expected call of RelatedEndpoints.

Jump to

Keyboard shortcuts

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