helper

package
v0.16.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 23, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

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 (DummyCFInterrogator) ListStackResources added in v0.11.0

type DummyCloudformationService

type DummyCloudformationService struct {
	ExpectedTags []*cloudformation.Tag
	StackEvents  []*cloudformation.StackEvent
	StackStatus  string
}

func (*DummyCloudformationService) CreateStack

type DummyEC2Interrogator added in v0.10.1

type DummyEC2Interrogator struct {
	DescribeInstancesOutput *ec2.DescribeInstancesOutput
}

func (DummyEC2Interrogator) DescribeInstances added in v0.11.0

type DummyEncryptService

type DummyEncryptService struct{}

func (DummyEncryptService) Encrypt

type DummyS3ObjectPutterService

type DummyS3ObjectPutterService struct {
	ExpectedBucket        string
	ExpectedKey           string
	ExpectedBody          string
	ExpectedContentType   string
	ExpectedContentLength int64
}

func (DummyS3ObjectPutterService) PutObject

type DummyStackTemplateGetter added in v0.13.0

type DummyStackTemplateGetter struct {
	GetStackTemplateOutput *cloudformation.GetTemplateOutput
}

func (DummyStackTemplateGetter) GetTemplate added in v0.13.0

type TestPlugin added in v0.9.8

type TestPlugin struct {
	Name  string
	Yaml  string
	Files map[string]string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL