mocks

package
v0.0.0-...-e19464a Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2025 License: AGPL-3.0 Imports: 11 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 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) AddCloud

func (m *MockBackend) AddCloud(arg0 cloud0.Cloud, arg1 string) error

AddCloud mocks base method.

func (*MockBackend) AllCloudCredentials

func (m *MockBackend) AllCloudCredentials(arg0 names.UserTag) ([]state.Credential, error)

AllCloudCredentials mocks base method.

func (*MockBackend) Cloud

func (m *MockBackend) Cloud(arg0 string) (cloud0.Cloud, error)

Cloud mocks base method.

func (*MockBackend) CloudCredential

func (m *MockBackend) CloudCredential(arg0 names.CloudCredentialTag) (state.Credential, error)

CloudCredential mocks base method.

func (*MockBackend) CloudCredentials

func (m *MockBackend) CloudCredentials(arg0 names.UserTag, arg1 string) (map[string]state.Credential, error)

CloudCredentials mocks base method.

func (*MockBackend) Clouds

func (m *MockBackend) Clouds() (map[names.CloudTag]cloud0.Cloud, error)

Clouds mocks base method.

func (*MockBackend) CloudsForUser

func (m *MockBackend) CloudsForUser(arg0 names.UserTag, arg1 bool) ([]state.CloudInfo, error)

CloudsForUser mocks base method.

func (*MockBackend) ControllerConfig

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

ControllerConfig mocks base method.

func (*MockBackend) ControllerInfo

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

ControllerInfo 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) CredentialModels

func (m *MockBackend) CredentialModels(arg0 names.CloudCredentialTag) (map[string]string, error)

CredentialModels mocks base method.

func (*MockBackend) CredentialModelsAndOwnerAccess

func (m *MockBackend) CredentialModelsAndOwnerAccess(arg0 names.CloudCredentialTag) ([]state.CredentialOwnerModelAccess, error)

CredentialModelsAndOwnerAccess 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) GetCloudUsers

func (m *MockBackend) GetCloudUsers(arg0 string) (map[string]permission.Access, error)

GetCloudUsers mocks base method.

func (*MockBackend) Model

func (m *MockBackend) Model() (cloud.Model, error)

Model mocks base method.

func (*MockBackend) ModelConfig

func (m *MockBackend) ModelConfig() (*config.Config, error)

ModelConfig mocks base method.

func (*MockBackend) RemoveCloud

func (m *MockBackend) RemoveCloud(arg0 string) error

RemoveCloud mocks base method.

func (*MockBackend) RemoveCloudAccess

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

RemoveCloudAccess mocks base method.

func (*MockBackend) RemoveCloudCredential

func (m *MockBackend) RemoveCloudCredential(arg0 names.CloudCredentialTag) error

RemoveCloudCredential mocks base method.

func (*MockBackend) RemoveModelsCredential

func (m *MockBackend) RemoveModelsCredential(arg0 names.CloudCredentialTag) error

RemoveModelsCredential mocks base method.

func (*MockBackend) UpdateCloud

func (m *MockBackend) UpdateCloud(arg0 cloud0.Cloud) error

UpdateCloud mocks base method.

func (*MockBackend) UpdateCloudAccess

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

UpdateCloudAccess mocks base method.

func (*MockBackend) UpdateCloudCredential

func (m *MockBackend) UpdateCloudCredential(arg0 names.CloudCredentialTag, arg1 cloud0.Credential) error

UpdateCloudCredential mocks base method.

func (*MockBackend) User

func (m *MockBackend) User(arg0 names.UserTag) (cloud.User, error)

User mocks base method.

type MockBackendMockRecorder

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

MockBackendMockRecorder is the mock recorder for MockBackend.

func (*MockBackendMockRecorder) AddCloud

func (mr *MockBackendMockRecorder) AddCloud(arg0, arg1 any) *gomock.Call

AddCloud indicates an expected call of AddCloud.

func (*MockBackendMockRecorder) AllCloudCredentials

func (mr *MockBackendMockRecorder) AllCloudCredentials(arg0 any) *gomock.Call

AllCloudCredentials indicates an expected call of AllCloudCredentials.

func (*MockBackendMockRecorder) Cloud

func (mr *MockBackendMockRecorder) Cloud(arg0 any) *gomock.Call

Cloud indicates an expected call of Cloud.

func (*MockBackendMockRecorder) CloudCredential

func (mr *MockBackendMockRecorder) CloudCredential(arg0 any) *gomock.Call

CloudCredential indicates an expected call of CloudCredential.

func (*MockBackendMockRecorder) CloudCredentials

func (mr *MockBackendMockRecorder) CloudCredentials(arg0, arg1 any) *gomock.Call

CloudCredentials indicates an expected call of CloudCredentials.

func (*MockBackendMockRecorder) Clouds

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

Clouds indicates an expected call of Clouds.

func (*MockBackendMockRecorder) CloudsForUser

func (mr *MockBackendMockRecorder) CloudsForUser(arg0, arg1 any) *gomock.Call

CloudsForUser indicates an expected call of CloudsForUser.

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

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

ControllerTag indicates an expected call of ControllerTag.

func (*MockBackendMockRecorder) CreateCloudAccess

func (mr *MockBackendMockRecorder) CreateCloudAccess(arg0, arg1, arg2 any) *gomock.Call

CreateCloudAccess indicates an expected call of CreateCloudAccess.

func (*MockBackendMockRecorder) CredentialModels

func (mr *MockBackendMockRecorder) CredentialModels(arg0 any) *gomock.Call

CredentialModels indicates an expected call of CredentialModels.

func (*MockBackendMockRecorder) CredentialModelsAndOwnerAccess

func (mr *MockBackendMockRecorder) CredentialModelsAndOwnerAccess(arg0 any) *gomock.Call

CredentialModelsAndOwnerAccess indicates an expected call of CredentialModelsAndOwnerAccess.

func (*MockBackendMockRecorder) GetCloudAccess

func (mr *MockBackendMockRecorder) GetCloudAccess(arg0, arg1 any) *gomock.Call

GetCloudAccess indicates an expected call of GetCloudAccess.

func (*MockBackendMockRecorder) GetCloudUsers

func (mr *MockBackendMockRecorder) GetCloudUsers(arg0 any) *gomock.Call

GetCloudUsers indicates an expected call of GetCloudUsers.

func (*MockBackendMockRecorder) Model

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

Model indicates an expected call of Model.

func (*MockBackendMockRecorder) ModelConfig

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

ModelConfig indicates an expected call of ModelConfig.

func (*MockBackendMockRecorder) RemoveCloud

func (mr *MockBackendMockRecorder) RemoveCloud(arg0 any) *gomock.Call

RemoveCloud indicates an expected call of RemoveCloud.

func (*MockBackendMockRecorder) RemoveCloudAccess

func (mr *MockBackendMockRecorder) RemoveCloudAccess(arg0, arg1 any) *gomock.Call

RemoveCloudAccess indicates an expected call of RemoveCloudAccess.

func (*MockBackendMockRecorder) RemoveCloudCredential

func (mr *MockBackendMockRecorder) RemoveCloudCredential(arg0 any) *gomock.Call

RemoveCloudCredential indicates an expected call of RemoveCloudCredential.

func (*MockBackendMockRecorder) RemoveModelsCredential

func (mr *MockBackendMockRecorder) RemoveModelsCredential(arg0 any) *gomock.Call

RemoveModelsCredential indicates an expected call of RemoveModelsCredential.

func (*MockBackendMockRecorder) UpdateCloud

func (mr *MockBackendMockRecorder) UpdateCloud(arg0 any) *gomock.Call

UpdateCloud indicates an expected call of UpdateCloud.

func (*MockBackendMockRecorder) UpdateCloudAccess

func (mr *MockBackendMockRecorder) UpdateCloudAccess(arg0, arg1, arg2 any) *gomock.Call

UpdateCloudAccess indicates an expected call of UpdateCloudAccess.

func (*MockBackendMockRecorder) UpdateCloudCredential

func (mr *MockBackendMockRecorder) UpdateCloudCredential(arg0, arg1 any) *gomock.Call

UpdateCloudCredential indicates an expected call of UpdateCloudCredential.

func (*MockBackendMockRecorder) User

func (mr *MockBackendMockRecorder) User(arg0 any) *gomock.Call

User indicates an expected call of User.

type MockModel

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

MockModel is a mock of Model interface.

func NewMockModel

func NewMockModel(ctrl *gomock.Controller) *MockModel

NewMockModel creates a new mock instance.

func (*MockModel) Cloud

func (m *MockModel) Cloud() (cloud0.Cloud, error)

Cloud mocks base method.

func (*MockModel) CloudCredential

func (m *MockModel) CloudCredential() (state.Credential, bool, error)

CloudCredential mocks base method.

func (*MockModel) CloudName

func (m *MockModel) CloudName() string

CloudName mocks base method.

func (*MockModel) CloudRegion

func (m *MockModel) CloudRegion() string

CloudRegion mocks base method.

func (*MockModel) EXPECT

func (m *MockModel) EXPECT() *MockModelMockRecorder

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

func (*MockModel) UUID

func (m *MockModel) UUID() string

UUID mocks base method.

type MockModelMockRecorder

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

MockModelMockRecorder is the mock recorder for MockModel.

func (*MockModelMockRecorder) Cloud

func (mr *MockModelMockRecorder) Cloud() *gomock.Call

Cloud indicates an expected call of Cloud.

func (*MockModelMockRecorder) CloudCredential

func (mr *MockModelMockRecorder) CloudCredential() *gomock.Call

CloudCredential indicates an expected call of CloudCredential.

func (*MockModelMockRecorder) CloudName

func (mr *MockModelMockRecorder) CloudName() *gomock.Call

CloudName indicates an expected call of CloudName.

func (*MockModelMockRecorder) CloudRegion

func (mr *MockModelMockRecorder) CloudRegion() *gomock.Call

CloudRegion indicates an expected call of CloudRegion.

func (*MockModelMockRecorder) UUID

func (mr *MockModelMockRecorder) UUID() *gomock.Call

UUID indicates an expected call of UUID.

type MockModelPoolBackend

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

MockModelPoolBackend is a mock of ModelPoolBackend interface.

func NewMockModelPoolBackend

func NewMockModelPoolBackend(ctrl *gomock.Controller) *MockModelPoolBackend

NewMockModelPoolBackend creates a new mock instance.

func (*MockModelPoolBackend) EXPECT

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

func (*MockModelPoolBackend) GetModelCallContext

GetModelCallContext mocks base method.

func (*MockModelPoolBackend) SystemState

func (m *MockModelPoolBackend) SystemState() (*state.State, error)

SystemState mocks base method.

type MockModelPoolBackendMockRecorder

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

MockModelPoolBackendMockRecorder is the mock recorder for MockModelPoolBackend.

func (*MockModelPoolBackendMockRecorder) GetModelCallContext

func (mr *MockModelPoolBackendMockRecorder) GetModelCallContext(arg0 any) *gomock.Call

GetModelCallContext indicates an expected call of GetModelCallContext.

func (*MockModelPoolBackendMockRecorder) SystemState

func (mr *MockModelPoolBackendMockRecorder) SystemState() *gomock.Call

SystemState indicates an expected call of SystemState.

type MockUser

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

MockUser is a mock of User interface.

func NewMockUser

func NewMockUser(ctrl *gomock.Controller) *MockUser

NewMockUser creates a new mock instance.

func (*MockUser) DisplayName

func (m *MockUser) DisplayName() string

DisplayName mocks base method.

func (*MockUser) EXPECT

func (m *MockUser) EXPECT() *MockUserMockRecorder

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

type MockUserMockRecorder

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

MockUserMockRecorder is the mock recorder for MockUser.

func (*MockUserMockRecorder) DisplayName

func (mr *MockUserMockRecorder) DisplayName() *gomock.Call

DisplayName indicates an expected call of DisplayName.

Jump to

Keyboard shortcuts

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