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

package testing

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

Package testing is a generated GoMock package.

Index

Package Files

bootstrap.go credentials.go package_mock.go polling.go storage.go tools.go

Variables

var (
    V100    = version.MustParse("1.0.0")
    V100p64 = version.MustParseBinary("1.0.0-precise-amd64")
    V100p32 = version.MustParseBinary("1.0.0-precise-i386")
    V100p   = []version.Binary{V100p64, V100p32}

    V100q64 = version.MustParseBinary("1.0.0-quantal-amd64")
    V100q32 = version.MustParseBinary("1.0.0-quantal-i386")
    V100q   = []version.Binary{V100q64, V100q32}
    V100all = append(V100p, V100q...)

    V1001    = version.MustParse("1.0.0.1")
    V1001p64 = version.MustParseBinary("1.0.0.1-precise-amd64")
    V100Xall = append(V100all, V1001p64)

    V110    = version.MustParse("1.1.0")
    V110p64 = version.MustParseBinary("1.1.0-precise-amd64")
    V110p32 = version.MustParseBinary("1.1.0-precise-i386")
    V110p   = []version.Binary{V110p64, V110p32}

    V110q64 = version.MustParseBinary("1.1.0-quantal-amd64")
    V110q32 = version.MustParseBinary("1.1.0-quantal-i386")
    V110q   = []version.Binary{V110q64, V110q32}
    V110all = append(V110p, V110q...)

    V1101p64 = version.MustParseBinary("1.1.0.1-precise-amd64")
    V110Xall = append(V110all, V1101p64)

    V120    = version.MustParse("1.2.0")
    V120p64 = version.MustParseBinary("1.2.0-precise-amd64")
    V120p32 = version.MustParseBinary("1.2.0-precise-i386")
    V120p   = []version.Binary{V120p64, V120p32}

    V120q64 = version.MustParseBinary("1.2.0-quantal-amd64")
    V120q32 = version.MustParseBinary("1.2.0-quantal-i386")
    V120q   = []version.Binary{V120q64, V120q32}

    V120t64 = version.MustParseBinary("1.2.0-trusty-amd64")
    V120t32 = version.MustParseBinary("1.2.0-trusty-i386")
    V120t   = []version.Binary{V120t64, V120t32}

    V120all = append(append(V120p, V120q...), V120t...)
    V1all   = append(V100Xall, append(V110all, V120all...)...)

    V220    = version.MustParse("2.2.0")
    V220p32 = version.MustParseBinary("2.2.0-precise-i386")
    V220p64 = version.MustParseBinary("2.2.0-precise-amd64")
    V220q32 = version.MustParseBinary("2.2.0-quantal-i386")
    V220q64 = version.MustParseBinary("2.2.0-quantal-amd64")
    V220all = []version.Binary{V220p64, V220p32, V220q64, V220q32}
    VAll    = append(V1all, V220all...)

    V31d0qppc64  = version.MustParseBinary("3.1-dev0-quantal-ppc64el")
    V31d01qppc64 = version.MustParseBinary("3.1-dev0.1-quantal-ppc64el")
)
var BootstrapToolsTests = []BootstrapToolsTest{
    {
        Info:          "no tools at all",
        CliVersion:    V100p64,
        DefaultSeries: "precise",
        Err:           noToolsMessage,
    }, {
        Info:          "released cli: use newest compatible release version",
        Available:     VAll,
        CliVersion:    V100p64,
        DefaultSeries: "precise",
        Expect:        V100p,
    }, {
        Info:          "released cli: cli Arch ignored",
        Available:     VAll,
        CliVersion:    V100p32,
        DefaultSeries: "precise",
        Expect:        V100p,
    }, {
        Info:          "released cli: cli series ignored",
        Available:     VAll,
        CliVersion:    V100q64,
        DefaultSeries: "precise",
        Expect:        V100p,
    }, {
        Info:          "released cli: series taken from default-series",
        Available:     V120all,
        CliVersion:    V120p64,
        DefaultSeries: "quantal",
        Expect:        V120q,
    }, {
        Info:          "released cli: ignore close dev match",
        Available:     V100Xall,
        CliVersion:    V100p64,
        DefaultSeries: "precise",
        Expect:        V100p,
    }, {
        Info:          "released cli: filter by arch constraints",
        Available:     V120all,
        CliVersion:    V120p64,
        DefaultSeries: "precise",
        Arch:          "i386",
        Expect:        []version.Binary{V120p32},
    }, {
        Info:          "released cli: specific released version",
        Available:     VAll,
        CliVersion:    V100p64,
        AgentVersion:  V100,
        DefaultSeries: "precise",
        Expect:        V100p,
    }, {
        Info:          "released cli: specific dev version",
        Available:     VAll,
        CliVersion:    V110p64,
        AgentVersion:  V110,
        DefaultSeries: "precise",
        Expect:        V110p,
    }, {
        Info:          "released cli: major upgrades bad",
        Available:     V220all,
        CliVersion:    V100p64,
        DefaultSeries: "precise",
        Err:           noToolsMessage,
    }, {
        Info:          "released cli: minor upgrades bad",
        Available:     V120all,
        CliVersion:    V100p64,
        DefaultSeries: "precise",
        Err:           noToolsMessage,
    }, {
        Info:          "released cli: major downgrades bad",
        Available:     V100Xall,
        CliVersion:    V220p64,
        DefaultSeries: "precise",
        Err:           noToolsMessage,
    }, {
        Info:          "released cli: minor downgrades bad",
        Available:     V100Xall,
        CliVersion:    V120p64,
        DefaultSeries: "quantal",
        Err:           noToolsMessage,
    }, {
        Info:          "released cli: no matching series",
        Available:     VAll,
        CliVersion:    V100p64,
        DefaultSeries: "raring",
        Err:           noToolsMessage,
    }, {
        Info:          "released cli: no matching arches",
        Available:     VAll,
        CliVersion:    V100p64,
        DefaultSeries: "precise",
        Arch:          "armhf",
        Err:           noToolsMessage,
    }, {
        Info:          "released cli: specific bad major 1",
        Available:     VAll,
        CliVersion:    V220p64,
        AgentVersion:  V120,
        DefaultSeries: "precise",
        Err:           noToolsMessage,
    }, {
        Info:          "released cli: specific bad major 2",
        Available:     VAll,
        CliVersion:    V120p64,
        AgentVersion:  V220,
        DefaultSeries: "precise",
        Err:           noToolsMessage,
    }, {
        Info:          "released cli: ignore dev tools 1",
        Available:     V110all,
        CliVersion:    V100p64,
        DefaultSeries: "precise",
        Err:           noToolsMessage,
    }, {
        Info:          "released cli: ignore dev tools 2",
        Available:     V110all,
        CliVersion:    V120p64,
        DefaultSeries: "precise",
        Err:           noToolsMessage,
    }, {
        Info:          "released cli: ignore dev tools 3",
        Available:     []version.Binary{V1001p64},
        CliVersion:    V100p64,
        DefaultSeries: "precise",
        Err:           noToolsMessage,
    }, {
        Info:          "released cli with dev setting respects agent-version",
        Available:     VAll,
        CliVersion:    V100q32,
        AgentVersion:  V1001,
        DefaultSeries: "precise",
        Development:   true,
        Expect:        []version.Binary{V1001p64},
    }, {
        Info:          "dev cli respects agent-version",
        Available:     VAll,
        CliVersion:    V100q32,
        AgentVersion:  V1001,
        DefaultSeries: "precise",
        Expect:        []version.Binary{V1001p64},
    }, {
        Info:          "released cli with dev setting respects agent-version",
        Available:     V1all,
        CliVersion:    V100q32,
        AgentVersion:  V1001,
        DefaultSeries: "precise",
        Development:   true,
        Expect:        []version.Binary{V1001p64},
    }, {
        Info:          "dev cli respects agent-version",
        Available:     V1all,
        CliVersion:    V100q32,
        AgentVersion:  V1001,
        DefaultSeries: "precise",
        Expect:        []version.Binary{V1001p64},
    }}

func AssertProviderAuthTypes Uses

func AssertProviderAuthTypes(c *gc.C, p environs.EnvironProvider, expectedAuthTypes ...cloud.AuthType)

AssertProviderAuthTypes asserts that the given provider has credential schemas for exactly the specified set of authentication types.

func AssertProviderCredentialsAttributesHidden Uses

func AssertProviderCredentialsAttributesHidden(c *gc.C, p environs.EnvironProvider, authType cloud.AuthType, expectedHidden ...string)

AssertProviderCredentialsAttributesHidden asserts that the provider credentials schema for the given provider and authentication type marks the specified attributes (and only those attributes) as being hidden.

func AssertProviderCredentialsValid Uses

func AssertProviderCredentialsValid(c *gc.C, p environs.EnvironProvider, authType cloud.AuthType, attrs map[string]string)

AssertProviderCredentialsValid asserts that the given provider is able to validate the given authentication type and credential attributes; and that removing any one of the attributes will cause the validation to fail.

func AssertUploadFakeToolsVersions Uses

func AssertUploadFakeToolsVersions(c *gc.C, stor storage.Storage, toolsDir, stream string, versions ...version.Binary) []*coretools.Tools

AssertUploadFakeToolsVersions puts fake tools in the supplied storage for the supplied versions.

func BootstrapContext Uses

func BootstrapContext(c *gc.C) environs.BootstrapContext

BootstrapContext creates a simple bootstrap execution context.

func CheckTools Uses

func CheckTools(c *gc.C, obtained, expected *coretools.Tools)

CheckTools ensures the obtained and expected tools are equal, allowing for the fact that the obtained tools may not have size and checksum set.

func CheckUpgraderReadyError Uses

func CheckUpgraderReadyError(c *gc.C, obtained error, expected *upgrader.UpgradeReadyError)

CheckUpgraderReadyError ensures the obtained and expected errors are equal.

func CreateLocalTestStorage Uses

func CreateLocalTestStorage(c *gc.C) (closer io.Closer, stor storage.Storage, dataDir string)

CreateLocalTestStorage returns the listener, which needs to be closed, and the storage that is backed by a directory created in the running test's temp directory.

func DisableFinishBootstrap Uses

func DisableFinishBootstrap() func()

DisableFinishBootstrap disables common.FinishBootstrap so that tests do not attempt to SSH to non-existent machines. The result is a function that restores finishBootstrap.

func InstallFakeDownloadedTools Uses

func InstallFakeDownloadedTools(c *gc.C, dataDir string, vers version.Binary) *coretools.Tools

InstallFakeDownloadedTools creates and unpacks fake tools of the given version into the data directory specified.

func MustUploadFakeTools Uses

func MustUploadFakeTools(stor storage.Storage, toolsDir, stream string)

MustUploadFakeTools acts as UploadFakeTools, but panics on failure.

func MustUploadFakeToolsVersions Uses

func MustUploadFakeToolsVersions(stor storage.Storage, stream string, versions ...version.Binary) []*coretools.Tools

MustUploadFakeToolsVersions acts as UploadFakeToolsVersions, but panics on failure.

func PatchAttemptStrategies Uses

func PatchAttemptStrategies(strategies ...*utils.AttemptStrategy) func()

PatchAttemptStrategies patches environs' global polling strategy, plus any otther AttemptStrategy objects whose addresses you pass, to very short polling and timeout times so that tests can run fast. It returns a cleanup function that restores the original settings. You must call this afterwards.

TODO(katco): 2016-08-09: lp:1611427

func PrimeTools Uses

func PrimeTools(c *gc.C, stor storage.Storage, dataDir, toolsDir string, vers version.Binary) *coretools.Tools

PrimeTools sets up the current version of the tools to vers and makes sure that they're available in the dataDir.

func RemoveFakeTools Uses

func RemoveFakeTools(c *gc.C, stor storage.Storage, toolsDir string)

RemoveFakeTools deletes the fake tools from the supplied storage.

func RemoveFakeToolsMetadata Uses

func RemoveFakeToolsMetadata(c *gc.C, stor storage.Storage)

RemoveFakeToolsMetadata deletes the fake simplestreams tools metadata from the supplied storage.

func RemoveTools Uses

func RemoveTools(c *gc.C, stor storage.Storage, toolsDir string)

RemoveTools deletes all tools from the supplied storage.

func SignFileData Uses

func SignFileData(stor storage.Storage, fileName string) error

func SignTestTools Uses

func SignTestTools(stor storage.Storage) error

func UploadFakeTools Uses

func UploadFakeTools(c *gc.C, stor storage.Storage, toolsDir, stream string)

UploadFakeTools puts fake tools into the supplied storage with a binary version matching jujuversion.Current; if jujuversion.Current's series is different to juju/juju/version.SupportedLTS(), matching fake tools will be uploaded for that series. This is useful for tests that are kinda casual about specifying their environment.

func UploadFakeToolsVersions Uses

func UploadFakeToolsVersions(stor storage.Storage, toolsDir, stream string, versions ...version.Binary) ([]*coretools.Tools, error)

UploadFakeToolsVersions puts fake tools in the supplied storage for the supplied versions.

type BootstrapToolsTest Uses

type BootstrapToolsTest struct {
    Info          string
    Available     []version.Binary
    CliVersion    version.Binary
    DefaultSeries string
    AgentVersion  version.Number
    Development   bool
    Arch          string
    Expect        []version.Binary
    Err           string
}

type MockCloudDestroyer Uses

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

MockCloudDestroyer is a mock of CloudDestroyer interface

func NewMockCloudDestroyer Uses

func NewMockCloudDestroyer(ctrl *gomock.Controller) *MockCloudDestroyer

NewMockCloudDestroyer creates a new mock instance

func (*MockCloudDestroyer) Destroy Uses

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

Destroy mocks base method

func (*MockCloudDestroyer) EXPECT Uses

func (m *MockCloudDestroyer) EXPECT() *MockCloudDestroyerMockRecorder

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

type MockCloudDestroyerMockRecorder Uses

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

MockCloudDestroyerMockRecorder is the mock recorder for MockCloudDestroyer

func (*MockCloudDestroyerMockRecorder) Destroy Uses

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

Destroy indicates an expected call of Destroy

type MockCloudDetector Uses

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

MockCloudDetector is a mock of CloudDetector interface

func NewMockCloudDetector Uses

func NewMockCloudDetector(ctrl *gomock.Controller) *MockCloudDetector

NewMockCloudDetector creates a new mock instance

func (*MockCloudDetector) DetectCloud Uses

func (m *MockCloudDetector) DetectCloud(arg0 string) (cloud.Cloud, error)

DetectCloud mocks base method

func (*MockCloudDetector) DetectClouds Uses

func (m *MockCloudDetector) DetectClouds() ([]cloud.Cloud, error)

DetectClouds mocks base method

func (*MockCloudDetector) EXPECT Uses

func (m *MockCloudDetector) EXPECT() *MockCloudDetectorMockRecorder

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

type MockCloudDetectorMockRecorder Uses

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

MockCloudDetectorMockRecorder is the mock recorder for MockCloudDetector

func (*MockCloudDetectorMockRecorder) DetectCloud Uses

func (mr *MockCloudDetectorMockRecorder) DetectCloud(arg0 interface{}) *gomock.Call

DetectCloud indicates an expected call of DetectCloud

func (*MockCloudDetectorMockRecorder) DetectClouds Uses

func (mr *MockCloudDetectorMockRecorder) DetectClouds() *gomock.Call

DetectClouds indicates an expected call of DetectClouds

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 MockCloudFinalizer Uses

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

MockCloudFinalizer is a mock of CloudFinalizer interface

func NewMockCloudFinalizer Uses

func NewMockCloudFinalizer(ctrl *gomock.Controller) *MockCloudFinalizer

NewMockCloudFinalizer creates a new mock instance

func (*MockCloudFinalizer) EXPECT Uses

func (m *MockCloudFinalizer) EXPECT() *MockCloudFinalizerMockRecorder

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

func (*MockCloudFinalizer) FinalizeCloud Uses

func (m *MockCloudFinalizer) FinalizeCloud(arg0 environs.FinalizeCloudContext, arg1 cloud.Cloud) (cloud.Cloud, error)

FinalizeCloud mocks base method

type MockCloudFinalizerMockRecorder Uses

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

MockCloudFinalizerMockRecorder is the mock recorder for MockCloudFinalizer

func (*MockCloudFinalizerMockRecorder) FinalizeCloud Uses

func (mr *MockCloudFinalizerMockRecorder) FinalizeCloud(arg0, arg1 interface{}) *gomock.Call

FinalizeCloud indicates an expected call of FinalizeCloud

type MockCloudRegionDetector Uses

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

MockCloudRegionDetector is a mock of CloudRegionDetector interface

func NewMockCloudRegionDetector Uses

func NewMockCloudRegionDetector(ctrl *gomock.Controller) *MockCloudRegionDetector

NewMockCloudRegionDetector creates a new mock instance

func (*MockCloudRegionDetector) DetectRegions Uses

func (m *MockCloudRegionDetector) DetectRegions() ([]cloud.Region, error)

DetectRegions mocks base method

func (*MockCloudRegionDetector) EXPECT Uses

func (m *MockCloudRegionDetector) EXPECT() *MockCloudRegionDetectorMockRecorder

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

type MockCloudRegionDetectorMockRecorder Uses

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

MockCloudRegionDetectorMockRecorder is the mock recorder for MockCloudRegionDetector

func (*MockCloudRegionDetectorMockRecorder) DetectRegions Uses

func (mr *MockCloudRegionDetectorMockRecorder) DetectRegions() *gomock.Call

DetectRegions indicates an expected call of DetectRegions

type MockConfigGetter Uses

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

MockConfigGetter is a mock of ConfigGetter interface

func NewMockConfigGetter Uses

func NewMockConfigGetter(ctrl *gomock.Controller) *MockConfigGetter

NewMockConfigGetter creates a new mock instance

func (*MockConfigGetter) Config Uses

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

Config mocks base method

func (*MockConfigGetter) EXPECT Uses

func (m *MockConfigGetter) EXPECT() *MockConfigGetterMockRecorder

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

type MockConfigGetterMockRecorder Uses

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

MockConfigGetterMockRecorder is the mock recorder for MockConfigGetter

func (*MockConfigGetterMockRecorder) Config Uses

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

Config indicates an expected call of Config

type MockDefaultConstraintsChecker Uses

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

MockDefaultConstraintsChecker is a mock of DefaultConstraintsChecker interface

func NewMockDefaultConstraintsChecker Uses

func NewMockDefaultConstraintsChecker(ctrl *gomock.Controller) *MockDefaultConstraintsChecker

NewMockDefaultConstraintsChecker creates a new mock instance

func (*MockDefaultConstraintsChecker) EXPECT Uses

func (m *MockDefaultConstraintsChecker) EXPECT() *MockDefaultConstraintsCheckerMockRecorder

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

func (*MockDefaultConstraintsChecker) ShouldApplyControllerConstraints Uses

func (m *MockDefaultConstraintsChecker) ShouldApplyControllerConstraints() bool

ShouldApplyControllerConstraints mocks base method

type MockDefaultConstraintsCheckerMockRecorder Uses

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

MockDefaultConstraintsCheckerMockRecorder is the mock recorder for MockDefaultConstraintsChecker

func (*MockDefaultConstraintsCheckerMockRecorder) ShouldApplyControllerConstraints Uses

func (mr *MockDefaultConstraintsCheckerMockRecorder) ShouldApplyControllerConstraints() *gomock.Call

ShouldApplyControllerConstraints indicates an expected call of ShouldApplyControllerConstraints

type MockEnviron Uses

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

MockEnviron is a mock of Environ interface

func NewMockEnviron Uses

func NewMockEnviron(ctrl *gomock.Controller) *MockEnviron

NewMockEnviron creates a new mock instance

func (*MockEnviron) AdoptResources Uses

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

AdoptResources mocks base method

func (*MockEnviron) AllInstances Uses

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

AllInstances mocks base method

func (*MockEnviron) AllRunningInstances Uses

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

AllRunningInstances mocks base method

func (*MockEnviron) Bootstrap Uses

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

Bootstrap mocks base method

func (*MockEnviron) Config Uses

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

Config mocks base method

func (*MockEnviron) ConstraintsValidator Uses

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

ConstraintsValidator mocks base method

func (*MockEnviron) ControllerInstances Uses

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

ControllerInstances mocks base method

func (*MockEnviron) Create Uses

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

Create mocks base method

func (*MockEnviron) Destroy Uses

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

Destroy mocks base method

func (*MockEnviron) DestroyController Uses

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

DestroyController mocks base method

func (*MockEnviron) EXPECT Uses

func (m *MockEnviron) EXPECT() *MockEnvironMockRecorder

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

func (*MockEnviron) InstanceTypes Uses

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

InstanceTypes mocks base method

func (*MockEnviron) Instances Uses

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

Instances mocks base method

func (*MockEnviron) MaintainInstance Uses

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

MaintainInstance mocks base method

func (*MockEnviron) PrecheckInstance Uses

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

PrecheckInstance mocks base method

func (*MockEnviron) PrepareForBootstrap Uses

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

PrepareForBootstrap mocks base method

func (*MockEnviron) Provider Uses

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

Provider mocks base method

func (*MockEnviron) SetConfig Uses

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

SetConfig mocks base method

func (*MockEnviron) StartInstance Uses

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

StartInstance mocks base method

func (*MockEnviron) StopInstances Uses

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

StopInstances mocks base method

func (*MockEnviron) StorageProvider Uses

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

StorageProvider mocks base method

func (*MockEnviron) StorageProviderTypes Uses

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

StorageProviderTypes mocks base method

type MockEnvironMockRecorder Uses

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

MockEnvironMockRecorder is the mock recorder for MockEnviron

func (*MockEnvironMockRecorder) AdoptResources Uses

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

AdoptResources indicates an expected call of AdoptResources

func (*MockEnvironMockRecorder) AllInstances Uses

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

AllInstances indicates an expected call of AllInstances

func (*MockEnvironMockRecorder) AllRunningInstances Uses

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

AllRunningInstances indicates an expected call of AllRunningInstances

func (*MockEnvironMockRecorder) Bootstrap Uses

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

Bootstrap indicates an expected call of Bootstrap

func (*MockEnvironMockRecorder) Config Uses

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

Config indicates an expected call of Config

func (*MockEnvironMockRecorder) ConstraintsValidator Uses

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

ConstraintsValidator indicates an expected call of ConstraintsValidator

func (*MockEnvironMockRecorder) ControllerInstances Uses

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

ControllerInstances indicates an expected call of ControllerInstances

func (*MockEnvironMockRecorder) Create Uses

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

Create indicates an expected call of Create

func (*MockEnvironMockRecorder) Destroy Uses

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

Destroy indicates an expected call of Destroy

func (*MockEnvironMockRecorder) DestroyController Uses

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

DestroyController indicates an expected call of DestroyController

func (*MockEnvironMockRecorder) InstanceTypes Uses

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

InstanceTypes indicates an expected call of InstanceTypes

func (*MockEnvironMockRecorder) Instances Uses

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

Instances indicates an expected call of Instances

func (*MockEnvironMockRecorder) MaintainInstance Uses

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

MaintainInstance indicates an expected call of MaintainInstance

func (*MockEnvironMockRecorder) PrecheckInstance Uses

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

PrecheckInstance indicates an expected call of PrecheckInstance

func (*MockEnvironMockRecorder) PrepareForBootstrap Uses

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

PrepareForBootstrap indicates an expected call of PrepareForBootstrap

func (*MockEnvironMockRecorder) Provider Uses

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

Provider indicates an expected call of Provider

func (*MockEnvironMockRecorder) SetConfig Uses

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

SetConfig indicates an expected call of SetConfig

func (*MockEnvironMockRecorder) StartInstance Uses

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

StartInstance indicates an expected call of StartInstance

func (*MockEnvironMockRecorder) StopInstances Uses

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

StopInstances indicates an expected call of StopInstances

func (*MockEnvironMockRecorder) StorageProvider Uses

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

StorageProvider indicates an expected call of StorageProvider

func (*MockEnvironMockRecorder) StorageProviderTypes Uses

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

StorageProviderTypes indicates an expected call of StorageProviderTypes

type MockEnvironProvider Uses

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

MockEnvironProvider is a mock of EnvironProvider interface

func NewMockEnvironProvider Uses

func NewMockEnvironProvider(ctrl *gomock.Controller) *MockEnvironProvider

NewMockEnvironProvider creates a new mock instance

func (*MockEnvironProvider) CloudSchema Uses

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

CloudSchema mocks base method

func (*MockEnvironProvider) CredentialSchemas Uses

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

CredentialSchemas mocks base method

func (*MockEnvironProvider) DetectCredentials Uses

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

DetectCredentials mocks base method

func (*MockEnvironProvider) EXPECT Uses

func (m *MockEnvironProvider) EXPECT() *MockEnvironProviderMockRecorder

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

func (*MockEnvironProvider) FinalizeCredential Uses

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

FinalizeCredential mocks base method

func (*MockEnvironProvider) Ping Uses

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

Ping mocks base method

func (*MockEnvironProvider) PrepareConfig Uses

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

PrepareConfig mocks base method

func (*MockEnvironProvider) Validate Uses

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

Validate mocks base method

func (*MockEnvironProvider) Version Uses

func (m *MockEnvironProvider) Version() int

Version mocks base method

type MockEnvironProviderMockRecorder Uses

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

MockEnvironProviderMockRecorder is the mock recorder for MockEnvironProvider

func (*MockEnvironProviderMockRecorder) CloudSchema Uses

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

CloudSchema indicates an expected call of CloudSchema

func (*MockEnvironProviderMockRecorder) CredentialSchemas Uses

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

CredentialSchemas indicates an expected call of CredentialSchemas

func (*MockEnvironProviderMockRecorder) DetectCredentials Uses

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

DetectCredentials indicates an expected call of DetectCredentials

func (*MockEnvironProviderMockRecorder) FinalizeCredential Uses

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

FinalizeCredential indicates an expected call of FinalizeCredential

func (*MockEnvironProviderMockRecorder) Ping Uses

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

Ping indicates an expected call of Ping

func (*MockEnvironProviderMockRecorder) PrepareConfig Uses

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

PrepareConfig indicates an expected call of PrepareConfig

func (*MockEnvironProviderMockRecorder) Validate Uses

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

Validate indicates an expected call of Validate

func (*MockEnvironProviderMockRecorder) Version Uses

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

Version indicates an expected call of Version

type MockFinalizeCloudContext Uses

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

MockFinalizeCloudContext is a mock of FinalizeCloudContext interface

func NewMockFinalizeCloudContext Uses

func NewMockFinalizeCloudContext(ctrl *gomock.Controller) *MockFinalizeCloudContext

NewMockFinalizeCloudContext creates a new mock instance

func (*MockFinalizeCloudContext) EXPECT Uses

func (m *MockFinalizeCloudContext) EXPECT() *MockFinalizeCloudContextMockRecorder

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

func (*MockFinalizeCloudContext) Verbosef Uses

func (m *MockFinalizeCloudContext) Verbosef(arg0 string, arg1 ...interface{})

Verbosef mocks base method

type MockFinalizeCloudContextMockRecorder Uses

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

MockFinalizeCloudContextMockRecorder is the mock recorder for MockFinalizeCloudContext

func (*MockFinalizeCloudContextMockRecorder) Verbosef Uses

func (mr *MockFinalizeCloudContextMockRecorder) Verbosef(arg0 interface{}, arg1 ...interface{}) *gomock.Call

Verbosef indicates an expected call of Verbosef

type MockFinalizeCredentialContext Uses

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

MockFinalizeCredentialContext is a mock of FinalizeCredentialContext interface

func NewMockFinalizeCredentialContext Uses

func NewMockFinalizeCredentialContext(ctrl *gomock.Controller) *MockFinalizeCredentialContext

NewMockFinalizeCredentialContext creates a new mock instance

func (*MockFinalizeCredentialContext) EXPECT Uses

func (m *MockFinalizeCredentialContext) EXPECT() *MockFinalizeCredentialContextMockRecorder

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

func (*MockFinalizeCredentialContext) GetStderr Uses

func (m *MockFinalizeCredentialContext) GetStderr() io.Writer

GetStderr mocks base method

type MockFinalizeCredentialContextMockRecorder Uses

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

MockFinalizeCredentialContextMockRecorder is the mock recorder for MockFinalizeCredentialContext

func (*MockFinalizeCredentialContextMockRecorder) GetStderr Uses

func (mr *MockFinalizeCredentialContextMockRecorder) GetStderr() *gomock.Call

GetStderr indicates an expected call of GetStderr

type MockFirewaller Uses

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

MockFirewaller is a mock of Firewaller interface

func NewMockFirewaller Uses

func NewMockFirewaller(ctrl *gomock.Controller) *MockFirewaller

NewMockFirewaller creates a new mock instance

func (*MockFirewaller) ClosePorts Uses

func (m *MockFirewaller) ClosePorts(arg0 context.ProviderCallContext, arg1 []network0.IngressRule) error

ClosePorts mocks base method

func (*MockFirewaller) EXPECT Uses

func (m *MockFirewaller) EXPECT() *MockFirewallerMockRecorder

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

func (*MockFirewaller) IngressRules Uses

func (m *MockFirewaller) IngressRules(arg0 context.ProviderCallContext) ([]network0.IngressRule, error)

IngressRules mocks base method

func (*MockFirewaller) OpenPorts Uses

func (m *MockFirewaller) OpenPorts(arg0 context.ProviderCallContext, arg1 []network0.IngressRule) error

OpenPorts mocks base method

type MockFirewallerMockRecorder Uses

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

MockFirewallerMockRecorder is the mock recorder for MockFirewaller

func (*MockFirewallerMockRecorder) ClosePorts Uses

func (mr *MockFirewallerMockRecorder) ClosePorts(arg0, arg1 interface{}) *gomock.Call

ClosePorts indicates an expected call of ClosePorts

func (*MockFirewallerMockRecorder) IngressRules Uses

func (mr *MockFirewallerMockRecorder) IngressRules(arg0 interface{}) *gomock.Call

IngressRules indicates an expected call of IngressRules

func (*MockFirewallerMockRecorder) OpenPorts Uses

func (mr *MockFirewallerMockRecorder) OpenPorts(arg0, arg1 interface{}) *gomock.Call

OpenPorts indicates an expected call of OpenPorts

type MockInstancePrechecker Uses

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

MockInstancePrechecker is a mock of InstancePrechecker interface

func NewMockInstancePrechecker Uses

func NewMockInstancePrechecker(ctrl *gomock.Controller) *MockInstancePrechecker

NewMockInstancePrechecker creates a new mock instance

func (*MockInstancePrechecker) EXPECT Uses

func (m *MockInstancePrechecker) EXPECT() *MockInstancePrecheckerMockRecorder

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

func (*MockInstancePrechecker) PrecheckInstance Uses

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

PrecheckInstance mocks base method

type MockInstancePrecheckerMockRecorder Uses

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

MockInstancePrecheckerMockRecorder is the mock recorder for MockInstancePrechecker

func (*MockInstancePrecheckerMockRecorder) PrecheckInstance Uses

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

PrecheckInstance indicates an expected call of PrecheckInstance

type MockInstanceTagger Uses

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

MockInstanceTagger is a mock of InstanceTagger interface

func NewMockInstanceTagger Uses

func NewMockInstanceTagger(ctrl *gomock.Controller) *MockInstanceTagger

NewMockInstanceTagger creates a new mock instance

func (*MockInstanceTagger) EXPECT Uses

func (m *MockInstanceTagger) EXPECT() *MockInstanceTaggerMockRecorder

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

func (*MockInstanceTagger) TagInstance Uses

func (m *MockInstanceTagger) TagInstance(arg0 context.ProviderCallContext, arg1 instance.Id, arg2 map[string]string) error

TagInstance mocks base method

type MockInstanceTaggerMockRecorder Uses

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

MockInstanceTaggerMockRecorder is the mock recorder for MockInstanceTagger

func (*MockInstanceTaggerMockRecorder) TagInstance Uses

func (mr *MockInstanceTaggerMockRecorder) TagInstance(arg0, arg1, arg2 interface{}) *gomock.Call

TagInstance indicates an expected call of TagInstance

type MockInstanceTypesFetcher Uses

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

MockInstanceTypesFetcher is a mock of InstanceTypesFetcher interface

func NewMockInstanceTypesFetcher Uses

func NewMockInstanceTypesFetcher(ctrl *gomock.Controller) *MockInstanceTypesFetcher

NewMockInstanceTypesFetcher creates a new mock instance

func (*MockInstanceTypesFetcher) EXPECT Uses

func (m *MockInstanceTypesFetcher) EXPECT() *MockInstanceTypesFetcherMockRecorder

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

func (*MockInstanceTypesFetcher) InstanceTypes Uses

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

InstanceTypes mocks base method

type MockInstanceTypesFetcherMockRecorder Uses

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

MockInstanceTypesFetcherMockRecorder is the mock recorder for MockInstanceTypesFetcher

func (*MockInstanceTypesFetcherMockRecorder) InstanceTypes Uses

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

InstanceTypes indicates an expected call of InstanceTypes

type MockModelConfigUpgrader Uses

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

MockModelConfigUpgrader is a mock of ModelConfigUpgrader interface

func NewMockModelConfigUpgrader Uses

func NewMockModelConfigUpgrader(ctrl *gomock.Controller) *MockModelConfigUpgrader

NewMockModelConfigUpgrader creates a new mock instance

func (*MockModelConfigUpgrader) EXPECT Uses

func (m *MockModelConfigUpgrader) EXPECT() *MockModelConfigUpgraderMockRecorder

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

func (*MockModelConfigUpgrader) UpgradeConfig Uses

func (m *MockModelConfigUpgrader) UpgradeConfig(arg0 *config.Config) (*config.Config, error)

UpgradeConfig mocks base method

type MockModelConfigUpgraderMockRecorder Uses

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

MockModelConfigUpgraderMockRecorder is the mock recorder for MockModelConfigUpgrader

func (*MockModelConfigUpgraderMockRecorder) UpgradeConfig Uses

func (mr *MockModelConfigUpgraderMockRecorder) UpgradeConfig(arg0 interface{}) *gomock.Call

UpgradeConfig indicates an expected call of UpgradeConfig

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 []network0.InterfaceInfo) ([]network0.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) ([]network0.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.SpaceAddress) ([]network.SpaceAddress, 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) 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) 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

type MockProviderCredentials Uses

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

MockProviderCredentials is a mock of ProviderCredentials interface

func NewMockProviderCredentials Uses

func NewMockProviderCredentials(ctrl *gomock.Controller) *MockProviderCredentials

NewMockProviderCredentials creates a new mock instance

func (*MockProviderCredentials) CredentialSchemas Uses

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

CredentialSchemas mocks base method

func (*MockProviderCredentials) DetectCredentials Uses

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

DetectCredentials mocks base method

func (*MockProviderCredentials) EXPECT Uses

func (m *MockProviderCredentials) EXPECT() *MockProviderCredentialsMockRecorder

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

func (*MockProviderCredentials) FinalizeCredential Uses

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

FinalizeCredential mocks base method

type MockProviderCredentialsMockRecorder Uses

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

MockProviderCredentialsMockRecorder is the mock recorder for MockProviderCredentials

func (*MockProviderCredentialsMockRecorder) CredentialSchemas Uses

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

CredentialSchemas indicates an expected call of CredentialSchemas

func (*MockProviderCredentialsMockRecorder) DetectCredentials Uses

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

DetectCredentials indicates an expected call of DetectCredentials

func (*MockProviderCredentialsMockRecorder) FinalizeCredential Uses

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

FinalizeCredential indicates an expected call of FinalizeCredential

type MockProviderCredentialsRegister Uses

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

MockProviderCredentialsRegister is a mock of ProviderCredentialsRegister interface

func NewMockProviderCredentialsRegister Uses

func NewMockProviderCredentialsRegister(ctrl *gomock.Controller) *MockProviderCredentialsRegister

NewMockProviderCredentialsRegister creates a new mock instance

func (*MockProviderCredentialsRegister) EXPECT Uses

func (m *MockProviderCredentialsRegister) EXPECT() *MockProviderCredentialsRegisterMockRecorder

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

func (*MockProviderCredentialsRegister) RegisterCredentials Uses

func (m *MockProviderCredentialsRegister) RegisterCredentials(arg0 cloud.Cloud) (map[string]*cloud.CloudCredential, error)

RegisterCredentials mocks base method

type MockProviderCredentialsRegisterMockRecorder Uses

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

MockProviderCredentialsRegisterMockRecorder is the mock recorder for MockProviderCredentialsRegister

func (*MockProviderCredentialsRegisterMockRecorder) RegisterCredentials Uses

func (mr *MockProviderCredentialsRegisterMockRecorder) RegisterCredentials(arg0 interface{}) *gomock.Call

RegisterCredentials indicates an expected call of RegisterCredentials

type MockProviderSchema Uses

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

MockProviderSchema is a mock of ProviderSchema interface

func NewMockProviderSchema Uses

func NewMockProviderSchema(ctrl *gomock.Controller) *MockProviderSchema

NewMockProviderSchema creates a new mock instance

func (*MockProviderSchema) EXPECT Uses

func (m *MockProviderSchema) EXPECT() *MockProviderSchemaMockRecorder

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

func (*MockProviderSchema) Schema Uses

func (m *MockProviderSchema) Schema() environschema_v1.Fields

Schema mocks base method

type MockProviderSchemaMockRecorder Uses

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

MockProviderSchemaMockRecorder is the mock recorder for MockProviderSchema

func (*MockProviderSchemaMockRecorder) Schema Uses

func (mr *MockProviderSchemaMockRecorder) Schema() *gomock.Call

Schema indicates an expected call of Schema

type MockRequestFinalizeCredential Uses

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

MockRequestFinalizeCredential is a mock of RequestFinalizeCredential interface

func NewMockRequestFinalizeCredential Uses

func NewMockRequestFinalizeCredential(ctrl *gomock.Controller) *MockRequestFinalizeCredential

NewMockRequestFinalizeCredential creates a new mock instance

func (*MockRequestFinalizeCredential) EXPECT Uses

func (m *MockRequestFinalizeCredential) EXPECT() *MockRequestFinalizeCredentialMockRecorder

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

func (*MockRequestFinalizeCredential) ShouldFinalizeCredential Uses

func (m *MockRequestFinalizeCredential) ShouldFinalizeCredential(arg0 cloud.Credential) bool

ShouldFinalizeCredential mocks base method

type MockRequestFinalizeCredentialMockRecorder Uses

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

MockRequestFinalizeCredentialMockRecorder is the mock recorder for MockRequestFinalizeCredential

func (*MockRequestFinalizeCredentialMockRecorder) ShouldFinalizeCredential Uses

func (mr *MockRequestFinalizeCredentialMockRecorder) ShouldFinalizeCredential(arg0 interface{}) *gomock.Call

ShouldFinalizeCredential indicates an expected call of ShouldFinalizeCredential

type MockUpgradeStep Uses

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

MockUpgradeStep is a mock of UpgradeStep interface

func NewMockUpgradeStep Uses

func NewMockUpgradeStep(ctrl *gomock.Controller) *MockUpgradeStep

NewMockUpgradeStep creates a new mock instance

func (*MockUpgradeStep) Description Uses

func (m *MockUpgradeStep) Description() string

Description mocks base method

func (*MockUpgradeStep) EXPECT Uses

func (m *MockUpgradeStep) EXPECT() *MockUpgradeStepMockRecorder

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

func (*MockUpgradeStep) Run Uses

func (m *MockUpgradeStep) Run(arg0 context.ProviderCallContext) error

Run mocks base method

type MockUpgradeStepMockRecorder Uses

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

MockUpgradeStepMockRecorder is the mock recorder for MockUpgradeStep

func (*MockUpgradeStepMockRecorder) Description Uses

func (mr *MockUpgradeStepMockRecorder) Description() *gomock.Call

Description indicates an expected call of Description

func (*MockUpgradeStepMockRecorder) Run Uses

func (mr *MockUpgradeStepMockRecorder) Run(arg0 interface{}) *gomock.Call

Run indicates an expected call of Run

type MockUpgrader Uses

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

MockUpgrader is a mock of Upgrader interface

func NewMockUpgrader Uses

func NewMockUpgrader(ctrl *gomock.Controller) *MockUpgrader

NewMockUpgrader creates a new mock instance

func (*MockUpgrader) EXPECT Uses

func (m *MockUpgrader) EXPECT() *MockUpgraderMockRecorder

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

func (*MockUpgrader) UpgradeOperations Uses

func (m *MockUpgrader) UpgradeOperations(arg0 context.ProviderCallContext, arg1 environs.UpgradeOperationsParams) []environs.UpgradeOperation

UpgradeOperations mocks base method

type MockUpgraderMockRecorder Uses

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

MockUpgraderMockRecorder is the mock recorder for MockUpgrader

func (*MockUpgraderMockRecorder) UpgradeOperations Uses

func (mr *MockUpgraderMockRecorder) UpgradeOperations(arg0, arg1 interface{}) *gomock.Call

UpgradeOperations indicates an expected call of UpgradeOperations

type ToolsFixture Uses

type ToolsFixture struct {
    DefaultBaseURL string

    // UploadArches holds the architectures of tools to
    // upload in UploadFakeTools. If empty, it will default
    // to just arch.HostArch()
    UploadArches []string
    // contains filtered or unexported fields
}

ToolsFixture is used as a fixture to stub out the default tools URL so we don't hit the real internet during tests.

func (*ToolsFixture) SetUpTest Uses

func (s *ToolsFixture) SetUpTest(c *gc.C)

func (*ToolsFixture) TearDownTest Uses

func (s *ToolsFixture) TearDownTest(c *gc.C)

func (*ToolsFixture) UploadFakeTools Uses

func (s *ToolsFixture) UploadFakeTools(c *gc.C, stor storage.Storage, toolsDir, stream string)

UploadFakeTools uploads fake tools of the architectures in s.UploadArches for each LTS release to the specified storage.

func (*ToolsFixture) UploadFakeToolsToDirectory Uses

func (s *ToolsFixture) UploadFakeToolsToDirectory(c *gc.C, dir, toolsDir, stream string)

UploadFakeToolsToDirectory uploads fake tools of the architectures in s.UploadArches for each LTS release to the specified directory.

Package testing imports 46 packages (graph) and is imported by 154 packages. Updated 2019-09-24. Refresh now. Tools for package owners.