deployer

package
v0.0.0-...-9a6c223 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2016 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeployOptions

type DeployOptions struct {
	StackName      string
	TemplateFolder string
	MainTemplate   string
	Region         string
	Bucket         string
	BucketFolder   string
	StackParams    StackParams
	StackTags      StackTags
}

DeployOptions holds options for template deployment

func (*DeployOptions) Validate

func (o *DeployOptions) Validate() error

Validate returns an error if the options are not valid

type Deployer

type Deployer interface {
	Deploy(*DeployOptions) error
}

Deployer is and interface that can deploy a cloudformation stack

func New

New creates a new Deployer instance

type StackParams

type StackParams map[string]string

StackParams holds parameters for a cloudforamtion stack

func (StackParams) AWSParams

func (s StackParams) AWSParams() []*cloudformation.Parameter

AWSParams converts StackParams to a slice of *cloudformation.Parameter

type StackTags

type StackTags map[string]string

StackTags holds tags for a cloudformation stack

func (StackTags) AWSTags

func (t StackTags) AWSTags() []*cloudformation.Tag

AWSTags converts StackTags to slice of *cloudformation.Tag

Jump to

Keyboard shortcuts

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