cloudctl

package module
v0.0.0-...-77492b5 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NoStackUpdatesToPerform

func NoStackUpdatesToPerform(err awserr.Error) bool

aws-sdk doesn't return an easily detectable Code. UpdateStack returns a "ValidationError" error with a specific Message. This function searches for the message that indicates not updates are to be performed. This is definitely fragile.

Types

type Cloudformation

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

func (*Cloudformation) Create

func (c *Cloudformation) Create(s *Stack) error

func (*Cloudformation) IsDeployed

func (c *Cloudformation) IsDeployed(name string) (bool, error)

func (*Cloudformation) Update

func (c *Cloudformation) Update(s *Stack) error

type Deployer

type Deployer interface {
	IsDeployed(string) (bool, error)
	Create(*Stack) error
	Update(*Stack) error
}

type Stack

type Stack struct {
	Name     string
	Template string
}

func NewStackFromYAML

func NewStackFromYAML(doc []byte) (*Stack, error)

func (*Stack) Deploy

func (s *Stack) Deploy(d Deployer) error

Directories

Path Synopsis
cmds

Jump to

Keyboard shortcuts

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