juju: github.com/juju/juju/provider/common/mocks Index | Files

package mocks

import "github.com/juju/juju/provider/common/mocks"

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Index

Package Files

availability_zone.go instance_configurator.go zoned_environ.go

type MockAvailabilityZone Uses

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

MockAvailabilityZone is a mock of AvailabilityZone interface

func NewMockAvailabilityZone Uses

func NewMockAvailabilityZone(ctrl *gomock.Controller) *MockAvailabilityZone

NewMockAvailabilityZone creates a new mock instance

func (*MockAvailabilityZone) Available Uses

func (m *MockAvailabilityZone) Available() bool

Available mocks base method

func (*MockAvailabilityZone) EXPECT Uses

func (m *MockAvailabilityZone) EXPECT() *MockAvailabilityZoneMockRecorder

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

func (*MockAvailabilityZone) Name Uses

func (m *MockAvailabilityZone) Name() string

Name mocks base method

type MockAvailabilityZoneMockRecorder Uses

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

MockAvailabilityZoneMockRecorder is the mock recorder for MockAvailabilityZone

func (*MockAvailabilityZoneMockRecorder) Available Uses

func (mr *MockAvailabilityZoneMockRecorder) Available() *gomock.Call

Available indicates an expected call of Available

func (*MockAvailabilityZoneMockRecorder) Name Uses

func (mr *MockAvailabilityZoneMockRecorder) Name() *gomock.Call

Name indicates an expected call of Name

type MockInstanceConfigurator Uses

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

MockInstanceConfigurator is a mock of InstanceConfigurator interface

func NewMockInstanceConfigurator Uses

func NewMockInstanceConfigurator(ctrl *gomock.Controller) *MockInstanceConfigurator

NewMockInstanceConfigurator creates a new mock instance

func (*MockInstanceConfigurator) ChangeIngressRules Uses

func (m *MockInstanceConfigurator) ChangeIngressRules(arg0 string, arg1 bool, arg2 []network.IngressRule) error

ChangeIngressRules mocks base method

func (*MockInstanceConfigurator) ConfigureExternalIpAddress Uses

func (m *MockInstanceConfigurator) ConfigureExternalIpAddress(arg0 int) error

ConfigureExternalIpAddress mocks base method

func (*MockInstanceConfigurator) DropAllPorts Uses

func (m *MockInstanceConfigurator) DropAllPorts(arg0 []int, arg1 string) error

DropAllPorts mocks base method

func (*MockInstanceConfigurator) EXPECT Uses

func (m *MockInstanceConfigurator) EXPECT() *MockInstanceConfiguratorMockRecorder

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

func (*MockInstanceConfigurator) FindIngressRules Uses

func (m *MockInstanceConfigurator) FindIngressRules() ([]network.IngressRule, error)

FindIngressRules mocks base method

type MockInstanceConfiguratorMockRecorder Uses

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

MockInstanceConfiguratorMockRecorder is the mock recorder for MockInstanceConfigurator

func (*MockInstanceConfiguratorMockRecorder) ChangeIngressRules Uses

func (mr *MockInstanceConfiguratorMockRecorder) ChangeIngressRules(arg0, arg1, arg2 interface{}) *gomock.Call

ChangeIngressRules indicates an expected call of ChangeIngressRules

func (*MockInstanceConfiguratorMockRecorder) ConfigureExternalIpAddress Uses

func (mr *MockInstanceConfiguratorMockRecorder) ConfigureExternalIpAddress(arg0 interface{}) *gomock.Call

ConfigureExternalIpAddress indicates an expected call of ConfigureExternalIpAddress

func (*MockInstanceConfiguratorMockRecorder) DropAllPorts Uses

func (mr *MockInstanceConfiguratorMockRecorder) DropAllPorts(arg0, arg1 interface{}) *gomock.Call

DropAllPorts indicates an expected call of DropAllPorts

func (*MockInstanceConfiguratorMockRecorder) FindIngressRules Uses

func (mr *MockInstanceConfiguratorMockRecorder) FindIngressRules() *gomock.Call

FindIngressRules indicates an expected call of FindIngressRules

type MockZonedEnviron Uses

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

MockZonedEnviron is a mock of ZonedEnviron interface

func NewMockZonedEnviron Uses

func NewMockZonedEnviron(ctrl *gomock.Controller) *MockZonedEnviron

NewMockZonedEnviron creates a new mock instance

func (*MockZonedEnviron) AdoptResources Uses

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

AdoptResources mocks base method

func (*MockZonedEnviron) AllInstances Uses

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

AllInstances mocks base method

func (*MockZonedEnviron) AllRunningInstances Uses

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

AllRunningInstances mocks base method

func (*MockZonedEnviron) AvailabilityZones Uses

func (m *MockZonedEnviron) AvailabilityZones(arg0 context.ProviderCallContext) ([]common.AvailabilityZone, error)

AvailabilityZones mocks base method

func (*MockZonedEnviron) Bootstrap Uses

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

Bootstrap mocks base method

func (*MockZonedEnviron) Config Uses

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

Config mocks base method

func (*MockZonedEnviron) ConstraintsValidator Uses

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

ConstraintsValidator mocks base method

func (*MockZonedEnviron) ControllerInstances Uses

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

ControllerInstances mocks base method

func (*MockZonedEnviron) Create Uses

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

Create mocks base method

func (*MockZonedEnviron) DeriveAvailabilityZones Uses

func (m *MockZonedEnviron) DeriveAvailabilityZones(arg0 context.ProviderCallContext, arg1 environs.StartInstanceParams) ([]string, error)

DeriveAvailabilityZones mocks base method

func (*MockZonedEnviron) Destroy Uses

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

Destroy mocks base method

func (*MockZonedEnviron) DestroyController Uses

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

DestroyController mocks base method

func (*MockZonedEnviron) EXPECT Uses

func (m *MockZonedEnviron) EXPECT() *MockZonedEnvironMockRecorder

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

func (*MockZonedEnviron) InstanceAvailabilityZoneNames Uses

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

InstanceAvailabilityZoneNames mocks base method

func (*MockZonedEnviron) InstanceTypes Uses

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

InstanceTypes mocks base method

func (*MockZonedEnviron) Instances Uses

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

Instances mocks base method

func (*MockZonedEnviron) MaintainInstance Uses

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

MaintainInstance mocks base method

func (*MockZonedEnviron) PrecheckInstance Uses

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

PrecheckInstance mocks base method

func (*MockZonedEnviron) PrepareForBootstrap Uses

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

PrepareForBootstrap mocks base method

func (*MockZonedEnviron) Provider Uses

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

Provider mocks base method

func (*MockZonedEnviron) SetConfig Uses

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

SetConfig mocks base method

func (*MockZonedEnviron) StartInstance Uses

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

StartInstance mocks base method

func (*MockZonedEnviron) StopInstances Uses

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

StopInstances mocks base method

func (*MockZonedEnviron) StorageProvider Uses

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

StorageProvider mocks base method

func (*MockZonedEnviron) StorageProviderTypes Uses

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

StorageProviderTypes mocks base method

type MockZonedEnvironMockRecorder Uses

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

MockZonedEnvironMockRecorder is the mock recorder for MockZonedEnviron

func (*MockZonedEnvironMockRecorder) AdoptResources Uses

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

AdoptResources indicates an expected call of AdoptResources

func (*MockZonedEnvironMockRecorder) AllInstances Uses

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

AllInstances indicates an expected call of AllInstances

func (*MockZonedEnvironMockRecorder) AllRunningInstances Uses

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

AllRunningInstances indicates an expected call of AllRunningInstances

func (*MockZonedEnvironMockRecorder) AvailabilityZones Uses

func (mr *MockZonedEnvironMockRecorder) AvailabilityZones(arg0 interface{}) *gomock.Call

AvailabilityZones indicates an expected call of AvailabilityZones

func (*MockZonedEnvironMockRecorder) Bootstrap Uses

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

Bootstrap indicates an expected call of Bootstrap

func (*MockZonedEnvironMockRecorder) Config Uses

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

Config indicates an expected call of Config

func (*MockZonedEnvironMockRecorder) ConstraintsValidator Uses

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

ConstraintsValidator indicates an expected call of ConstraintsValidator

func (*MockZonedEnvironMockRecorder) ControllerInstances Uses

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

ControllerInstances indicates an expected call of ControllerInstances

func (*MockZonedEnvironMockRecorder) Create Uses

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

Create indicates an expected call of Create

func (*MockZonedEnvironMockRecorder) DeriveAvailabilityZones Uses

func (mr *MockZonedEnvironMockRecorder) DeriveAvailabilityZones(arg0, arg1 interface{}) *gomock.Call

DeriveAvailabilityZones indicates an expected call of DeriveAvailabilityZones

func (*MockZonedEnvironMockRecorder) Destroy Uses

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

Destroy indicates an expected call of Destroy

func (*MockZonedEnvironMockRecorder) DestroyController Uses

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

DestroyController indicates an expected call of DestroyController

func (*MockZonedEnvironMockRecorder) InstanceAvailabilityZoneNames Uses

func (mr *MockZonedEnvironMockRecorder) InstanceAvailabilityZoneNames(arg0, arg1 interface{}) *gomock.Call

InstanceAvailabilityZoneNames indicates an expected call of InstanceAvailabilityZoneNames

func (*MockZonedEnvironMockRecorder) InstanceTypes Uses

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

InstanceTypes indicates an expected call of InstanceTypes

func (*MockZonedEnvironMockRecorder) Instances Uses

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

Instances indicates an expected call of Instances

func (*MockZonedEnvironMockRecorder) MaintainInstance Uses

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

MaintainInstance indicates an expected call of MaintainInstance

func (*MockZonedEnvironMockRecorder) PrecheckInstance Uses

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

PrecheckInstance indicates an expected call of PrecheckInstance

func (*MockZonedEnvironMockRecorder) PrepareForBootstrap Uses

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

PrepareForBootstrap indicates an expected call of PrepareForBootstrap

func (*MockZonedEnvironMockRecorder) Provider Uses

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

Provider indicates an expected call of Provider

func (*MockZonedEnvironMockRecorder) SetConfig Uses

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

SetConfig indicates an expected call of SetConfig

func (*MockZonedEnvironMockRecorder) StartInstance Uses

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

StartInstance indicates an expected call of StartInstance

func (*MockZonedEnvironMockRecorder) StopInstances Uses

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

StopInstances indicates an expected call of StopInstances

func (*MockZonedEnvironMockRecorder) StorageProvider Uses

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

StorageProvider indicates an expected call of StorageProvider

func (*MockZonedEnvironMockRecorder) StorageProviderTypes Uses

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

StorageProviderTypes indicates an expected call of StorageProviderTypes

Package mocks imports 12 packages (graph). Updated 2019-06-30. Refresh now. Tools for package owners.