Documentation ¶
Index ¶
- type FakeAWSClient
- func (client *FakeAWSClient) DeleteFile(bucket, path string) error
- func (client *FakeAWSClient) DeleteVMsInVPC(vpcID string) error
- func (client *FakeAWSClient) DeleteVersionedBucket(name string) error
- func (client *FakeAWSClient) EnsureBucketExists(name string) error
- func (client *FakeAWSClient) EnsureFileExists(bucket, path string, defaultContents []byte) ([]byte, bool, error)
- func (client *FakeAWSClient) FindLongestMatchingHostedZone(subdomain string) (string, string, error)
- func (client *FakeAWSClient) HasFile(bucket, path string) (bool, error)
- func (client *FakeAWSClient) IAAS() string
- func (client *FakeAWSClient) LoadFile(bucket, path string) ([]byte, error)
- func (client *FakeAWSClient) Region() string
- func (client *FakeAWSClient) WriteFile(bucket, path string, contents []byte) error
- type FakeBoshClient
- type FakeConfigClient
- func (client *FakeConfigClient) DeleteAll(config *config.Config) error
- func (client *FakeConfigClient) DeleteAsset(filename string) error
- func (client *FakeConfigClient) HasAsset(filename string) (bool, error)
- func (client *FakeConfigClient) Load() (*config.Config, error)
- func (client *FakeConfigClient) LoadAsset(filename string) ([]byte, error)
- func (client *FakeConfigClient) LoadOrCreate(deployArgs *config.DeployArgs) (*config.Config, bool, error)
- func (client *FakeConfigClient) StoreAsset(filename string, contents []byte) error
- func (client *FakeConfigClient) Update(config *config.Config) error
- type FakeFlyClient
- type FakeTerraformClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeAWSClient ¶
type FakeAWSClient struct { FakeDeleteVMsInVPC func(vpcID string) error FakeDeleteFile func(bucket, path string) error FakeDeleteVersionedBucket func(name string) error FakeEnsureBucketExists func(name string) error FakeEnsureFileExists func(bucket, path string, defaultContents []byte) ([]byte, bool, error) FakeFindLongestMatchingHostedZone func(subdomain string) (string, string, error) FakeHasFile func(bucket, path string) (bool, error) FakeLoadFile func(bucket, path string) ([]byte, error) FakeWriteFile func(bucket, path string, contents []byte) error FakeRegion func() string }
FakeAWSClient implements iaas.IClient for testing
func (*FakeAWSClient) DeleteFile ¶
func (client *FakeAWSClient) DeleteFile(bucket, path string) error
DeleteFile delegates to FakeDeleteFile which is dynamically set by the tests
func (*FakeAWSClient) DeleteVMsInVPC ¶
func (client *FakeAWSClient) DeleteVMsInVPC(vpcID string) error
DeleteVMsInVPC delegates to FakeDeleteVMsInVPC which is dynamically set by the tests
func (*FakeAWSClient) DeleteVersionedBucket ¶
func (client *FakeAWSClient) DeleteVersionedBucket(name string) error
DeleteVersionedBucket delegates to FakeDeleteVersionedBucket which is dynamically set by the tests
func (*FakeAWSClient) EnsureBucketExists ¶
func (client *FakeAWSClient) EnsureBucketExists(name string) error
EnsureBucketExists delegates to FakeEnsureBucketExists which is dynamically set by the tests
func (*FakeAWSClient) EnsureFileExists ¶
func (client *FakeAWSClient) EnsureFileExists(bucket, path string, defaultContents []byte) ([]byte, bool, error)
EnsureFileExists delegates to FakeEnsureFileExists which is dynamically set by the tests
func (*FakeAWSClient) FindLongestMatchingHostedZone ¶
func (client *FakeAWSClient) FindLongestMatchingHostedZone(subdomain string) (string, string, error)
FindLongestMatchingHostedZone delegates to FakeFindLongestMatchingHostedZone which is dynamically set by the tests
func (*FakeAWSClient) HasFile ¶
func (client *FakeAWSClient) HasFile(bucket, path string) (bool, error)
HasFile delegates to FakeHasFile which is dynamically set by the tests
func (*FakeAWSClient) IAAS ¶
func (client *FakeAWSClient) IAAS() string
IAAS is here to implement iaas.IClient
func (*FakeAWSClient) LoadFile ¶
func (client *FakeAWSClient) LoadFile(bucket, path string) ([]byte, error)
LoadFile delegates to FakeLoadFile which is dynamically set by the tests
func (*FakeAWSClient) Region ¶
func (client *FakeAWSClient) Region() string
Region delegates to FakeRegion which is dynamically set by the tests
type FakeBoshClient ¶
type FakeBoshClient struct { FakeDeploy func([]byte, bool) ([]byte, error) FakeDelete func([]byte) ([]byte, error) FakeCleanup func() error FakeInstances func() ([]bosh.Instance, error) }
FakeBoshClient implements bosh.IClient for testing
func (*FakeBoshClient) Cleanup ¶
func (client *FakeBoshClient) Cleanup() error
Cleanup delegates to FakeCleanup which is dynamically set by the tests
func (*FakeBoshClient) Delete ¶
func (client *FakeBoshClient) Delete(stateFileBytes []byte) ([]byte, error)
Delete delegates to FakeDelete which is dynamically set by the tests
type FakeConfigClient ¶
type FakeConfigClient struct { FakeLoad func() (*config.Config, error) FakeUpdate func(*config.Config) error FakeLoadOrCreate func(deployArgs *config.DeployArgs) (*config.Config, bool, error) FakeStoreAsset func(filename string, contents []byte) error FakeLoadAsset func(filename string) ([]byte, error) FakeDeleteAsset func(filename string) error FakeDeleteAll func(config *config.Config) error FakeHasAsset func(filename string) (bool, error) }
FakeConfigClient implements config.IClient for testing
func (*FakeConfigClient) DeleteAll ¶
func (client *FakeConfigClient) DeleteAll(config *config.Config) error
DeleteAll delegates to FakeDeleteAll which is dynamically set by the tests
func (*FakeConfigClient) DeleteAsset ¶
func (client *FakeConfigClient) DeleteAsset(filename string) error
DeleteAsset delegates to FakeDeleteAsset which is dynamically set by the tests
func (*FakeConfigClient) HasAsset ¶
func (client *FakeConfigClient) HasAsset(filename string) (bool, error)
HasAsset delegates to FakeHasAsset which is dynamically set by the tests
func (*FakeConfigClient) Load ¶
func (client *FakeConfigClient) Load() (*config.Config, error)
Load delegates to FakeLoad which is dynamically set by the tests
func (*FakeConfigClient) LoadAsset ¶
func (client *FakeConfigClient) LoadAsset(filename string) ([]byte, error)
LoadAsset delegates to FakeLoadAsset which is dynamically set by the tests
func (*FakeConfigClient) LoadOrCreate ¶
func (client *FakeConfigClient) LoadOrCreate(deployArgs *config.DeployArgs) (*config.Config, bool, error)
LoadOrCreate delegates to FakeLoadOrCreate which is dynamically set by the tests
func (*FakeConfigClient) StoreAsset ¶
func (client *FakeConfigClient) StoreAsset(filename string, contents []byte) error
StoreAsset delegates to FakeStoreAsset which is dynamically set by the tests
type FakeFlyClient ¶
type FakeFlyClient struct { FakeSetDefaultPipeline func(deployAgs *config.DeployArgs, config *config.Config, allowFlyVersionDiscrepancy bool) error FakeCleanup func() error FakeCanConnect func() (bool, error) }
FakeFlyClient implements fly.IClient for testing
func (*FakeFlyClient) CanConnect ¶
func (client *FakeFlyClient) CanConnect() (bool, error)
CanConnect delegates to FakeCanConnect which is dynamically set by the tests
func (*FakeFlyClient) Cleanup ¶
func (client *FakeFlyClient) Cleanup() error
Cleanup delegates to FakeCleanup which is dynamically set by the tests
func (*FakeFlyClient) SetDefaultPipeline ¶
func (client *FakeFlyClient) SetDefaultPipeline(deployArgs *config.DeployArgs, config *config.Config, allowFlyVersionDiscrepancy bool) error
SetDefaultPipeline delegates to FakeSetDefaultPipeline which is dynamically set by the tests
type FakeTerraformClient ¶
type FakeTerraformClient struct { FakeOutput func() (*terraform.Metadata, error) FakeApply func(dryrun bool) error FakeDestroy func() error FakeCleanup func() error }
FakeTerraformClient implements terraform.IClient for testing
func (*FakeTerraformClient) Apply ¶
func (client *FakeTerraformClient) Apply(dryrun bool) error
Apply delegates to FakeApply which is dynamically set by the tests
func (*FakeTerraformClient) Cleanup ¶
func (client *FakeTerraformClient) Cleanup() error
Cleanup delegates to FakeCleanup which is dynamically set by the tests
func (*FakeTerraformClient) Destroy ¶
func (client *FakeTerraformClient) Destroy() error
Destroy delegates to FakeDestroy which is dynamically set by the tests