juju: github.com/juju/juju/environs/mocks Index | Files

package mocks

import "github.com/juju/juju/environs/mocks"

Package mocks is a generated GoMock package.

Index

Package Files

package_mock.go

type MockCloudEnvironProvider Uses

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

MockCloudEnvironProvider is a mock of CloudEnvironProvider interface

func NewMockCloudEnvironProvider Uses

func NewMockCloudEnvironProvider(ctrl *gomock.Controller) *MockCloudEnvironProvider

NewMockCloudEnvironProvider creates a new mock instance

func (*MockCloudEnvironProvider) CloudSchema Uses

func (m *MockCloudEnvironProvider) CloudSchema() *jsonschema.Schema

CloudSchema mocks base method

func (*MockCloudEnvironProvider) CredentialSchemas Uses

func (m *MockCloudEnvironProvider) CredentialSchemas() map[cloud.AuthType]cloud.CredentialSchema

CredentialSchemas mocks base method

func (*MockCloudEnvironProvider) DetectCredentials Uses

func (m *MockCloudEnvironProvider) DetectCredentials() (*cloud.CloudCredential, error)

DetectCredentials mocks base method

func (*MockCloudEnvironProvider) EXPECT Uses

func (m *MockCloudEnvironProvider) EXPECT() *MockCloudEnvironProviderMockRecorder

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

func (*MockCloudEnvironProvider) FinalizeCredential Uses

func (m *MockCloudEnvironProvider) FinalizeCredential(arg0 environs.FinalizeCredentialContext, arg1 environs.FinalizeCredentialParams) (*cloud.Credential, error)

FinalizeCredential mocks base method

func (*MockCloudEnvironProvider) Open Uses

func (m *MockCloudEnvironProvider) Open(arg0 environs.OpenParams) (environs.Environ, error)

Open mocks base method

func (*MockCloudEnvironProvider) Ping Uses

func (m *MockCloudEnvironProvider) Ping(arg0 context.ProviderCallContext, arg1 string) error

Ping mocks base method

func (*MockCloudEnvironProvider) PrepareConfig Uses

func (m *MockCloudEnvironProvider) PrepareConfig(arg0 environs.PrepareConfigParams) (*config.Config, error)

PrepareConfig mocks base method

func (*MockCloudEnvironProvider) Validate Uses

func (m *MockCloudEnvironProvider) Validate(arg0, arg1 *config.Config) (*config.Config, error)

Validate mocks base method

func (*MockCloudEnvironProvider) Version Uses

func (m *MockCloudEnvironProvider) Version() int

Version mocks base method

type MockCloudEnvironProviderMockRecorder Uses

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

MockCloudEnvironProviderMockRecorder is the mock recorder for MockCloudEnvironProvider

func (*MockCloudEnvironProviderMockRecorder) CloudSchema Uses

func (mr *MockCloudEnvironProviderMockRecorder) CloudSchema() *gomock.Call

CloudSchema indicates an expected call of CloudSchema

func (*MockCloudEnvironProviderMockRecorder) CredentialSchemas Uses

func (mr *MockCloudEnvironProviderMockRecorder) CredentialSchemas() *gomock.Call

CredentialSchemas indicates an expected call of CredentialSchemas

func (*MockCloudEnvironProviderMockRecorder) DetectCredentials Uses

func (mr *MockCloudEnvironProviderMockRecorder) DetectCredentials() *gomock.Call

DetectCredentials indicates an expected call of DetectCredentials

func (*MockCloudEnvironProviderMockRecorder) FinalizeCredential Uses

func (mr *MockCloudEnvironProviderMockRecorder) FinalizeCredential(arg0, arg1 interface{}) *gomock.Call

FinalizeCredential indicates an expected call of FinalizeCredential

func (*MockCloudEnvironProviderMockRecorder) Open Uses

func (mr *MockCloudEnvironProviderMockRecorder) Open(arg0 interface{}) *gomock.Call

Open indicates an expected call of Open

func (*MockCloudEnvironProviderMockRecorder) Ping Uses

func (mr *MockCloudEnvironProviderMockRecorder) Ping(arg0, arg1 interface{}) *gomock.Call

Ping indicates an expected call of Ping

func (*MockCloudEnvironProviderMockRecorder) PrepareConfig Uses

func (mr *MockCloudEnvironProviderMockRecorder) PrepareConfig(arg0 interface{}) *gomock.Call

PrepareConfig indicates an expected call of PrepareConfig

func (*MockCloudEnvironProviderMockRecorder) Validate Uses

func (mr *MockCloudEnvironProviderMockRecorder) Validate(arg0, arg1 interface{}) *gomock.Call

Validate indicates an expected call of Validate

func (*MockCloudEnvironProviderMockRecorder) Version Uses

func (mr *MockCloudEnvironProviderMockRecorder) Version() *gomock.Call

Version indicates an expected call of Version

type MockNetworkingEnviron Uses

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

MockNetworkingEnviron is a mock of NetworkingEnviron interface

func NewMockNetworkingEnviron Uses

func NewMockNetworkingEnviron(ctrl *gomock.Controller) *MockNetworkingEnviron

NewMockNetworkingEnviron creates a new mock instance

func (*MockNetworkingEnviron) AdoptResources Uses

func (m *MockNetworkingEnviron) AdoptResources(arg0 context.ProviderCallContext, arg1 string, arg2 version.Number) error

AdoptResources mocks base method

func (*MockNetworkingEnviron) AllInstances Uses

func (m *MockNetworkingEnviron) AllInstances(arg0 context.ProviderCallContext) ([]instances.Instance, error)

AllInstances mocks base method

func (*MockNetworkingEnviron) AllRunningInstances Uses

func (m *MockNetworkingEnviron) AllRunningInstances(arg0 context.ProviderCallContext) ([]instances.Instance, error)

AllRunningInstances mocks base method

func (*MockNetworkingEnviron) AllocateContainerAddresses Uses

func (m *MockNetworkingEnviron) AllocateContainerAddresses(arg0 context.ProviderCallContext, arg1 instance.Id, arg2 names_v3.MachineTag, arg3 []network.InterfaceInfo) ([]network.InterfaceInfo, error)

AllocateContainerAddresses mocks base method

func (*MockNetworkingEnviron) AreSpacesRoutable Uses

func (m *MockNetworkingEnviron) AreSpacesRoutable(arg0 context.ProviderCallContext, arg1, arg2 *environs.ProviderSpaceInfo) (bool, error)

AreSpacesRoutable mocks base method

func (*MockNetworkingEnviron) Bootstrap Uses

func (m *MockNetworkingEnviron) Bootstrap(arg0 environs.BootstrapContext, arg1 context.ProviderCallContext, arg2 environs.BootstrapParams) (*environs.BootstrapResult, error)

Bootstrap mocks base method

func (*MockNetworkingEnviron) Config Uses

func (m *MockNetworkingEnviron) Config() *config.Config

Config mocks base method

func (*MockNetworkingEnviron) ConstraintsValidator Uses

func (m *MockNetworkingEnviron) ConstraintsValidator(arg0 context.ProviderCallContext) (constraints.Validator, error)

ConstraintsValidator mocks base method

func (*MockNetworkingEnviron) ControllerInstances Uses

func (m *MockNetworkingEnviron) ControllerInstances(arg0 context.ProviderCallContext, arg1 string) ([]instance.Id, error)

ControllerInstances mocks base method

func (*MockNetworkingEnviron) Create Uses

func (m *MockNetworkingEnviron) Create(arg0 context.ProviderCallContext, arg1 environs.CreateParams) error

Create mocks base method

func (*MockNetworkingEnviron) Destroy Uses

func (m *MockNetworkingEnviron) Destroy(arg0 context.ProviderCallContext) error

Destroy mocks base method

func (*MockNetworkingEnviron) DestroyController Uses

func (m *MockNetworkingEnviron) DestroyController(arg0 context.ProviderCallContext, arg1 string) error

DestroyController mocks base method

func (*MockNetworkingEnviron) EXPECT Uses

func (m *MockNetworkingEnviron) EXPECT() *MockNetworkingEnvironMockRecorder

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

func (*MockNetworkingEnviron) InstanceTypes Uses

func (m *MockNetworkingEnviron) InstanceTypes(arg0 context.ProviderCallContext, arg1 constraints.Value) (instances.InstanceTypesWithCostMetadata, error)

InstanceTypes mocks base method

func (*MockNetworkingEnviron) Instances Uses

func (m *MockNetworkingEnviron) Instances(arg0 context.ProviderCallContext, arg1 []instance.Id) ([]instances.Instance, error)

Instances mocks base method

func (*MockNetworkingEnviron) MaintainInstance Uses

func (m *MockNetworkingEnviron) MaintainInstance(arg0 context.ProviderCallContext, arg1 environs.StartInstanceParams) error

MaintainInstance mocks base method

func (*MockNetworkingEnviron) NetworkInterfaces Uses

func (m *MockNetworkingEnviron) NetworkInterfaces(arg0 context.ProviderCallContext, arg1 []instance.Id) ([][]network.InterfaceInfo, error)

NetworkInterfaces mocks base method

func (*MockNetworkingEnviron) PrecheckInstance Uses

func (m *MockNetworkingEnviron) PrecheckInstance(arg0 context.ProviderCallContext, arg1 environs.PrecheckInstanceParams) error

PrecheckInstance mocks base method

func (*MockNetworkingEnviron) PrepareForBootstrap Uses

func (m *MockNetworkingEnviron) PrepareForBootstrap(arg0 environs.BootstrapContext, arg1 string) error

PrepareForBootstrap mocks base method

func (*MockNetworkingEnviron) Provider Uses

func (m *MockNetworkingEnviron) Provider() environs.EnvironProvider

Provider mocks base method

func (*MockNetworkingEnviron) ProviderSpaceInfo Uses

func (m *MockNetworkingEnviron) ProviderSpaceInfo(arg0 context.ProviderCallContext, arg1 *network.SpaceInfo) (*environs.ProviderSpaceInfo, error)

ProviderSpaceInfo mocks base method

func (*MockNetworkingEnviron) ReleaseContainerAddresses Uses

func (m *MockNetworkingEnviron) ReleaseContainerAddresses(arg0 context.ProviderCallContext, arg1 []network0.ProviderInterfaceInfo) error

ReleaseContainerAddresses mocks base method

func (*MockNetworkingEnviron) SSHAddresses Uses

func (m *MockNetworkingEnviron) SSHAddresses(arg0 context.ProviderCallContext, arg1 network.SpaceAddresses) (network.SpaceAddresses, error)

SSHAddresses mocks base method

func (*MockNetworkingEnviron) SetConfig Uses

func (m *MockNetworkingEnviron) SetConfig(arg0 *config.Config) error

SetConfig mocks base method

func (*MockNetworkingEnviron) Spaces Uses

func (m *MockNetworkingEnviron) Spaces(arg0 context.ProviderCallContext) ([]network.SpaceInfo, error)

Spaces mocks base method

func (*MockNetworkingEnviron) StartInstance Uses

func (m *MockNetworkingEnviron) StartInstance(arg0 context.ProviderCallContext, arg1 environs.StartInstanceParams) (*environs.StartInstanceResult, error)

StartInstance mocks base method

func (*MockNetworkingEnviron) StopInstances Uses

func (m *MockNetworkingEnviron) StopInstances(arg0 context.ProviderCallContext, arg1 ...instance.Id) error

StopInstances mocks base method

func (*MockNetworkingEnviron) StorageProvider Uses

func (m *MockNetworkingEnviron) StorageProvider(arg0 storage.ProviderType) (storage.Provider, error)

StorageProvider mocks base method

func (*MockNetworkingEnviron) StorageProviderTypes Uses

func (m *MockNetworkingEnviron) StorageProviderTypes() ([]storage.ProviderType, error)

StorageProviderTypes mocks base method

func (*MockNetworkingEnviron) Subnets Uses

func (m *MockNetworkingEnviron) Subnets(arg0 context.ProviderCallContext, arg1 instance.Id, arg2 []network.Id) ([]network.SubnetInfo, error)

Subnets mocks base method

func (*MockNetworkingEnviron) SuperSubnets Uses

func (m *MockNetworkingEnviron) SuperSubnets(arg0 context.ProviderCallContext) ([]string, error)

SuperSubnets mocks base method

func (*MockNetworkingEnviron) SupportsContainerAddresses Uses

func (m *MockNetworkingEnviron) SupportsContainerAddresses(arg0 context.ProviderCallContext) (bool, error)

SupportsContainerAddresses mocks base method

func (*MockNetworkingEnviron) SupportsProviderSpaces Uses

func (m *MockNetworkingEnviron) SupportsProviderSpaces(arg0 context.ProviderCallContext) (bool, error)

SupportsProviderSpaces mocks base method

func (*MockNetworkingEnviron) SupportsSpaceDiscovery Uses

func (m *MockNetworkingEnviron) SupportsSpaceDiscovery(arg0 context.ProviderCallContext) (bool, error)

SupportsSpaceDiscovery mocks base method

func (*MockNetworkingEnviron) SupportsSpaces Uses

func (m *MockNetworkingEnviron) SupportsSpaces(arg0 context.ProviderCallContext) (bool, error)

SupportsSpaces mocks base method

type MockNetworkingEnvironMockRecorder Uses

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

MockNetworkingEnvironMockRecorder is the mock recorder for MockNetworkingEnviron

func (*MockNetworkingEnvironMockRecorder) AdoptResources Uses

func (mr *MockNetworkingEnvironMockRecorder) AdoptResources(arg0, arg1, arg2 interface{}) *gomock.Call

AdoptResources indicates an expected call of AdoptResources

func (*MockNetworkingEnvironMockRecorder) AllInstances Uses

func (mr *MockNetworkingEnvironMockRecorder) AllInstances(arg0 interface{}) *gomock.Call

AllInstances indicates an expected call of AllInstances

func (*MockNetworkingEnvironMockRecorder) AllRunningInstances Uses

func (mr *MockNetworkingEnvironMockRecorder) AllRunningInstances(arg0 interface{}) *gomock.Call

AllRunningInstances indicates an expected call of AllRunningInstances

func (*MockNetworkingEnvironMockRecorder) AllocateContainerAddresses Uses

func (mr *MockNetworkingEnvironMockRecorder) AllocateContainerAddresses(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

AllocateContainerAddresses indicates an expected call of AllocateContainerAddresses

func (*MockNetworkingEnvironMockRecorder) AreSpacesRoutable Uses

func (mr *MockNetworkingEnvironMockRecorder) AreSpacesRoutable(arg0, arg1, arg2 interface{}) *gomock.Call

AreSpacesRoutable indicates an expected call of AreSpacesRoutable

func (*MockNetworkingEnvironMockRecorder) Bootstrap Uses

func (mr *MockNetworkingEnvironMockRecorder) Bootstrap(arg0, arg1, arg2 interface{}) *gomock.Call

Bootstrap indicates an expected call of Bootstrap

func (*MockNetworkingEnvironMockRecorder) Config Uses

func (mr *MockNetworkingEnvironMockRecorder) Config() *gomock.Call

Config indicates an expected call of Config

func (*MockNetworkingEnvironMockRecorder) ConstraintsValidator Uses

func (mr *MockNetworkingEnvironMockRecorder) ConstraintsValidator(arg0 interface{}) *gomock.Call

ConstraintsValidator indicates an expected call of ConstraintsValidator

func (*MockNetworkingEnvironMockRecorder) ControllerInstances Uses

func (mr *MockNetworkingEnvironMockRecorder) ControllerInstances(arg0, arg1 interface{}) *gomock.Call

ControllerInstances indicates an expected call of ControllerInstances

func (*MockNetworkingEnvironMockRecorder) Create Uses

func (mr *MockNetworkingEnvironMockRecorder) Create(arg0, arg1 interface{}) *gomock.Call

Create indicates an expected call of Create

func (*MockNetworkingEnvironMockRecorder) Destroy Uses

func (mr *MockNetworkingEnvironMockRecorder) Destroy(arg0 interface{}) *gomock.Call

Destroy indicates an expected call of Destroy

func (*MockNetworkingEnvironMockRecorder) DestroyController Uses

func (mr *MockNetworkingEnvironMockRecorder) DestroyController(arg0, arg1 interface{}) *gomock.Call

DestroyController indicates an expected call of DestroyController

func (*MockNetworkingEnvironMockRecorder) InstanceTypes Uses

func (mr *MockNetworkingEnvironMockRecorder) InstanceTypes(arg0, arg1 interface{}) *gomock.Call

InstanceTypes indicates an expected call of InstanceTypes

func (*MockNetworkingEnvironMockRecorder) Instances Uses

func (mr *MockNetworkingEnvironMockRecorder) Instances(arg0, arg1 interface{}) *gomock.Call

Instances indicates an expected call of Instances

func (*MockNetworkingEnvironMockRecorder) MaintainInstance Uses

func (mr *MockNetworkingEnvironMockRecorder) MaintainInstance(arg0, arg1 interface{}) *gomock.Call

MaintainInstance indicates an expected call of MaintainInstance

func (*MockNetworkingEnvironMockRecorder) NetworkInterfaces Uses

func (mr *MockNetworkingEnvironMockRecorder) NetworkInterfaces(arg0, arg1 interface{}) *gomock.Call

NetworkInterfaces indicates an expected call of NetworkInterfaces

func (*MockNetworkingEnvironMockRecorder) PrecheckInstance Uses

func (mr *MockNetworkingEnvironMockRecorder) PrecheckInstance(arg0, arg1 interface{}) *gomock.Call

PrecheckInstance indicates an expected call of PrecheckInstance

func (*MockNetworkingEnvironMockRecorder) PrepareForBootstrap Uses

func (mr *MockNetworkingEnvironMockRecorder) PrepareForBootstrap(arg0, arg1 interface{}) *gomock.Call

PrepareForBootstrap indicates an expected call of PrepareForBootstrap

func (*MockNetworkingEnvironMockRecorder) Provider Uses

func (mr *MockNetworkingEnvironMockRecorder) Provider() *gomock.Call

Provider indicates an expected call of Provider

func (*MockNetworkingEnvironMockRecorder) ProviderSpaceInfo Uses

func (mr *MockNetworkingEnvironMockRecorder) ProviderSpaceInfo(arg0, arg1 interface{}) *gomock.Call

ProviderSpaceInfo indicates an expected call of ProviderSpaceInfo

func (*MockNetworkingEnvironMockRecorder) ReleaseContainerAddresses Uses

func (mr *MockNetworkingEnvironMockRecorder) ReleaseContainerAddresses(arg0, arg1 interface{}) *gomock.Call

ReleaseContainerAddresses indicates an expected call of ReleaseContainerAddresses

func (*MockNetworkingEnvironMockRecorder) SSHAddresses Uses

func (mr *MockNetworkingEnvironMockRecorder) SSHAddresses(arg0, arg1 interface{}) *gomock.Call

SSHAddresses indicates an expected call of SSHAddresses

func (*MockNetworkingEnvironMockRecorder) SetConfig Uses

func (mr *MockNetworkingEnvironMockRecorder) SetConfig(arg0 interface{}) *gomock.Call

SetConfig indicates an expected call of SetConfig

func (*MockNetworkingEnvironMockRecorder) Spaces Uses

func (mr *MockNetworkingEnvironMockRecorder) Spaces(arg0 interface{}) *gomock.Call

Spaces indicates an expected call of Spaces

func (*MockNetworkingEnvironMockRecorder) StartInstance Uses

func (mr *MockNetworkingEnvironMockRecorder) StartInstance(arg0, arg1 interface{}) *gomock.Call

StartInstance indicates an expected call of StartInstance

func (*MockNetworkingEnvironMockRecorder) StopInstances Uses

func (mr *MockNetworkingEnvironMockRecorder) StopInstances(arg0 interface{}, arg1 ...interface{}) *gomock.Call

StopInstances indicates an expected call of StopInstances

func (*MockNetworkingEnvironMockRecorder) StorageProvider Uses

func (mr *MockNetworkingEnvironMockRecorder) StorageProvider(arg0 interface{}) *gomock.Call

StorageProvider indicates an expected call of StorageProvider

func (*MockNetworkingEnvironMockRecorder) StorageProviderTypes Uses

func (mr *MockNetworkingEnvironMockRecorder) StorageProviderTypes() *gomock.Call

StorageProviderTypes indicates an expected call of StorageProviderTypes

func (*MockNetworkingEnvironMockRecorder) Subnets Uses

func (mr *MockNetworkingEnvironMockRecorder) Subnets(arg0, arg1, arg2 interface{}) *gomock.Call

Subnets indicates an expected call of Subnets

func (*MockNetworkingEnvironMockRecorder) SuperSubnets Uses

func (mr *MockNetworkingEnvironMockRecorder) SuperSubnets(arg0 interface{}) *gomock.Call

SuperSubnets indicates an expected call of SuperSubnets

func (*MockNetworkingEnvironMockRecorder) SupportsContainerAddresses Uses

func (mr *MockNetworkingEnvironMockRecorder) SupportsContainerAddresses(arg0 interface{}) *gomock.Call

SupportsContainerAddresses indicates an expected call of SupportsContainerAddresses

func (*MockNetworkingEnvironMockRecorder) SupportsProviderSpaces Uses

func (mr *MockNetworkingEnvironMockRecorder) SupportsProviderSpaces(arg0 interface{}) *gomock.Call

SupportsProviderSpaces indicates an expected call of SupportsProviderSpaces

func (*MockNetworkingEnvironMockRecorder) SupportsSpaceDiscovery Uses

func (mr *MockNetworkingEnvironMockRecorder) SupportsSpaceDiscovery(arg0 interface{}) *gomock.Call

SupportsSpaceDiscovery indicates an expected call of SupportsSpaceDiscovery

func (*MockNetworkingEnvironMockRecorder) SupportsSpaces Uses

func (mr *MockNetworkingEnvironMockRecorder) SupportsSpaces(arg0 interface{}) *gomock.Call

SupportsSpaces indicates an expected call of SupportsSpaces

Package mocks imports 15 packages (graph). Updated 2020-02-19. Refresh now. Tools for package owners.