Documentation ¶
Index ¶
- Variables
- func EmptyAssets() assetsImpl
- func NestedStackExists(cf CFInterrogator, parentStackName, stackName string) (bool, error)
- func StackEventErrMsgs(events []*cloudformation.StackEvent) []string
- func StackExists(cf CFInterrogator, stackName string) (bool, error)
- type AssetLocationProvider
- type Assets
- type AssetsBuilder
- type AssetsBuilderImpl
- type CFInterrogator
- type CRUDService
- type CreationService
- type Destroyer
- type EC2Interrogator
- type Provisioner
- func (c *Provisioner) CreateStackAtURLAndWait(cfSvc CRUDService, templateURL string) error
- func (c *Provisioner) EstimateTemplateCost(cfSvc CRUDService, body string, parameters []*cloudformation.Parameter) (*cloudformation.EstimateTemplateCostOutput, error)
- func (c *Provisioner) StreamEventsNested(q chan struct{}, f *cloudformation.CloudFormation, stackId string, ...) error
- func (c *Provisioner) UpdateStackAtURLAndWait(cfSvc CRUDService, templateURL string) (string, error)
- func (c *Provisioner) UploadAssets(s3Svc S3ObjectPutterService, assets Assets) error
- func (c *Provisioner) ValidateStackAtURL(templateURL string) (string, error)
- type S3ObjectPutterService
- type S3URI
- type UpdateService
Constants ¶
This section is empty.
Variables ¶
View Source
var CFN_TEMPLATE_SIZE_LIMIT = 51200
Functions ¶
func EmptyAssets ¶ added in v0.11.0
func EmptyAssets() assetsImpl
func NestedStackExists ¶ added in v0.11.0
func NestedStackExists(cf CFInterrogator, parentStackName, stackName string) (bool, error)
func StackEventErrMsgs ¶
func StackEventErrMsgs(events []*cloudformation.StackEvent) []string
func StackExists ¶ added in v0.11.0
func StackExists(cf CFInterrogator, stackName string) (bool, error)
Types ¶
type AssetLocationProvider ¶
type AssetLocationProvider struct {
// contains filtered or unexported fields
}
func (AssetLocationProvider) Locate ¶ added in v0.13.0
func (p AssetLocationProvider) Locate(filename string) (*api.AssetLocation, error)
func (AssetLocationProvider) S3DirURI ¶ added in v0.13.0
func (p AssetLocationProvider) S3DirURI() string
func (AssetLocationProvider) S3Prefix ¶ added in v0.13.0
func (p AssetLocationProvider) S3Prefix() string
S3Prefix returns BUCKET + / + S3 OBJECT KEY PREFIX whereas the prefix is that of all the assets locatable by this provider For example, in case this provider is configured to locate assets for stack MYSTACK in S3 bucket MYBUCKET due to that you've passed an S3 URI of `s3://MYBUCKET/MY/PREFIX` and the stack name of MYSTACK, this func returns "MYBUCKET/MY/PREFIX/MYSTACK".
type AssetsBuilder ¶
type AssetsBuilderImpl ¶ added in v0.13.0
type AssetsBuilderImpl struct { AssetLocationProvider // contains filtered or unexported fields }
func NewAssetsBuilder ¶
func (*AssetsBuilderImpl) AddUserDataPart ¶ added in v0.13.0
func (*AssetsBuilderImpl) Build ¶ added in v0.13.0
func (b *AssetsBuilderImpl) Build() Assets
type CFInterrogator ¶ added in v0.11.0
type CFInterrogator interface { ListStackResources(input *cloudformation.ListStackResourcesInput) (*cloudformation.ListStackResourcesOutput, error) DescribeStacks(input *cloudformation.DescribeStacksInput) (*cloudformation.DescribeStacksOutput, error) }
Used for querying existance of stacks and nested stacks.
type CRUDService ¶
type CRUDService interface { CreateStack(*cloudformation.CreateStackInput) (*cloudformation.CreateStackOutput, error) UpdateStack(input *cloudformation.UpdateStackInput) (*cloudformation.UpdateStackOutput, error) DescribeStacks(input *cloudformation.DescribeStacksInput) (*cloudformation.DescribeStacksOutput, error) DescribeStackEvents(input *cloudformation.DescribeStackEventsInput) (*cloudformation.DescribeStackEventsOutput, error) EstimateTemplateCost(input *cloudformation.EstimateTemplateCostInput) (*cloudformation.EstimateTemplateCostOutput, error) }
type CreationService ¶
type CreationService interface {
CreateStack(*cloudformation.CreateStackInput) (*cloudformation.CreateStackOutput, error)
}
type Destroyer ¶
type Destroyer struct {
// contains filtered or unexported fields
}
func NewDestroyer ¶
type EC2Interrogator ¶ added in v0.10.1
type EC2Interrogator interface {
DescribeInstances(input *ec2.DescribeInstancesInput) (*ec2.DescribeInstancesOutput, error)
}
type Provisioner ¶
type Provisioner struct {
// contains filtered or unexported fields
}
func NewProvisioner ¶
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 KeyComponents() []string BucketAndKey() string String() string }
func S3URIFromString ¶
type UpdateService ¶
type UpdateService interface {
UpdateStack(input *cloudformation.UpdateStackInput) (*cloudformation.UpdateStackOutput, error)
}
Click to show internal directories.
Click to hide internal directories.