cfnstack

package
v0.9.8 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2017 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CFN_TEMPLATE_SIZE_LIMIT = 51200

Functions

func StackEventErrMsgs

func StackEventErrMsgs(events []*cloudformation.StackEvent) []string

Types

type AssetLocationProvider

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

type Assets

type Assets interface {
	Merge(Assets) Assets
	AsMap() map[model.AssetID]model.Asset
	FindAssetByStackAndFileName(string, string) (model.Asset, error)
}

type AssetsBuilder

type AssetsBuilder interface {
	Add(filename string, content string) (model.Asset, error)
	AddUserDataPart(userdata model.UserData, part string, assetName string) error
	Build() Assets
}

func NewAssetsBuilder

func NewAssetsBuilder(stackName string, s3URI string, region model.Region) AssetsBuilder

type CreationService

type CreationService interface {
	CreateStack(*cloudformation.CreateStackInput) (*cloudformation.CreateStackOutput, error)
}

type Destroyer

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

func NewDestroyer

func NewDestroyer(stackName string, session *session.Session) *Destroyer

func (*Destroyer) Destroy

func (c *Destroyer) Destroy() error

type Provisioner

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

func NewProvisioner

func NewProvisioner(name string, stackTags map[string]string, s3URI string, region model.Region, stackPolicyBody string, session *session.Session) *Provisioner

func (*Provisioner) CreateStackAtURLAndWait

func (c *Provisioner) CreateStackAtURLAndWait(cfSvc CRUDService, templateURL string) error

func (*Provisioner) EstimateTemplateCost

func (c *Provisioner) EstimateTemplateCost(cfSvc CRUDService, body string, parameters []*cloudformation.Parameter) (*cloudformation.EstimateTemplateCostOutput, error)

func (*Provisioner) StreamEventsNested added in v0.9.8

func (c *Provisioner) StreamEventsNested(q chan struct{}, f *cloudformation.CloudFormation, stackId string, headStackName string, t time.Time) error

func (*Provisioner) UpdateStackAtURLAndWait

func (c *Provisioner) UpdateStackAtURLAndWait(cfSvc CRUDService, templateURL string) (string, error)

func (*Provisioner) UploadAssets

func (c *Provisioner) UploadAssets(s3Svc S3ObjectPutterService, assets Assets) error

func (*Provisioner) ValidateStackAtURL

func (c *Provisioner) ValidateStackAtURL(templateURL string) (string, error)

type S3ObjectPutterService

type S3ObjectPutterService interface {
	PutObject(input *s3.PutObjectInput) (*s3.PutObjectOutput, error)
}

type S3URI

type S3URI interface {
	Bucket() string
	PathComponents() []string
}

func S3URIFromString

func S3URIFromString(s3URI string) (S3URI, error)

type UpdateService

type UpdateService interface {
	UpdateStack(input *cloudformation.UpdateStackInput) (*cloudformation.UpdateStackOutput, error)
}

Jump to

Keyboard shortcuts

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