Documentation ¶
Index ¶
- func WithDummyCredentials(fn func(dir string))
- func WithDummyCredentialsButCAKey(fn func(dir string))
- func WithPlugins(t *testing.T, plugins []TestPlugin, fn func())
- func WithTempDir(fn func(dir string))
- type DummyCFInterrogator
- type DummyCloudformationService
- type DummyEC2Interrogator
- type DummyEncryptService
- type DummyS3ObjectPutterService
- type DummyStackTemplateGetter
- type TestPlugin
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithDummyCredentials ¶
func WithDummyCredentials(fn func(dir string))
func WithDummyCredentialsButCAKey ¶ added in v0.9.9
func WithDummyCredentialsButCAKey(fn func(dir string))
func WithPlugins ¶ added in v0.9.8
func WithPlugins(t *testing.T, plugins []TestPlugin, fn func())
func WithTempDir ¶
func WithTempDir(fn func(dir string))
Types ¶
type DummyCFInterrogator ¶ added in v0.11.0
type DummyCFInterrogator struct { ListStacksResourcesResult *cloudformation.ListStackResourcesOutput DescribeStacksResult *cloudformation.DescribeStacksOutput }
DummyCFInterrogator is used to prevent calls to AWS - always returns empty results.
func (DummyCFInterrogator) DescribeStacks ¶ added in v0.11.2
func (cf DummyCFInterrogator) DescribeStacks(input *cloudformation.DescribeStacksInput) (*cloudformation.DescribeStacksOutput, error)
func (DummyCFInterrogator) ListStackResources ¶ added in v0.11.0
func (cf DummyCFInterrogator) ListStackResources(input *cloudformation.ListStackResourcesInput) (*cloudformation.ListStackResourcesOutput, error)
type DummyCloudformationService ¶
type DummyCloudformationService struct { ExpectedTags []*cloudformation.Tag StackEvents []*cloudformation.StackEvent StackStatus string }
func (*DummyCloudformationService) CreateStack ¶
func (cfSvc *DummyCloudformationService) CreateStack(req *cloudformation.CreateStackInput) (*cloudformation.CreateStackOutput, error)
type DummyEC2Interrogator ¶ added in v0.10.1
type DummyEC2Interrogator struct {
DescribeInstancesOutput *ec2.DescribeInstancesOutput
}
func (DummyEC2Interrogator) DescribeInstances ¶ added in v0.11.0
func (ec DummyEC2Interrogator) DescribeInstances(input *ec2.DescribeInstancesInput) (*ec2.DescribeInstancesOutput, error)
type DummyEncryptService ¶
type DummyEncryptService struct{}
func (DummyEncryptService) Encrypt ¶
func (d DummyEncryptService) Encrypt(input *kms.EncryptInput) (*kms.EncryptOutput, error)
type DummyS3ObjectPutterService ¶
type DummyS3ObjectPutterService struct { ExpectedBucket string ExpectedKey string ExpectedBody string ExpectedContentType string ExpectedContentLength int64 }
func (DummyS3ObjectPutterService) PutObject ¶
func (s3Svc DummyS3ObjectPutterService) PutObject(input *s3.PutObjectInput) (*s3.PutObjectOutput, error)
type DummyStackTemplateGetter ¶ added in v0.13.0
type DummyStackTemplateGetter struct {
GetStackTemplateOutput *cloudformation.GetTemplateOutput
}
func (DummyStackTemplateGetter) GetTemplate ¶ added in v0.13.0
func (cfn DummyStackTemplateGetter) GetTemplate(input *cloudformation.GetTemplateInput) (*cloudformation.GetTemplateOutput, error)
Click to show internal directories.
Click to hide internal directories.