aws

package
v0.0.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type ChangeSet

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

func (*ChangeSet) Describe

func (changeset *ChangeSet) Describe() *cloudformation.DescribeChangeSetResponse

func (*ChangeSet) SendExecuteRequest

func (changeset *ChangeSet) SendExecuteRequest() *string

func (*ChangeSet) String

func (changeset *ChangeSet) String() string

func (*ChangeSet) WaitTillExecutable

func (changeset *ChangeSet) WaitTillExecutable() *ChangeSet

type Config

type Config struct {
	VpcStackName          string
	EcsSpotFleetStackName string
	EcsClusterStackName   string
	PublicIPStackName     string
	EcsClusterName        string
	EcsSpotFleetPurpose   string
	KeyPairName           string
	HostedZoneName        string
}

type Session

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

func CreateAwsSession

func CreateAwsSession() (*Session, error)

func NewSession

func NewSession() (*Session, error)

func (*Session) Delete

func (session *Session) Delete()

Delete tears down the compute

func (*Session) Deploy

func (session *Session) Deploy(parameters *provideTypes.DeployParameters)

Deploy builds, publish image and deploy service

func (*Session) DescribeService

func (session *Session) DescribeService(serviceArn string, clusterName string) (*ecs.DescribeServicesResponse, error)

func (*Session) GetComputeConfig

func (session *Session) GetComputeConfig() Config

func (*Session) GetKeyPairName

func (session *Session) GetKeyPairName() string

func (*Session) Initialise

func (session *Session) Initialise(parameters *types.InitialisationParameters)

func (*Session) NewSsmSession

func (session *Session) NewSsmSession() *SsmSession

func (*Session) Start

func (session *Session) Start(parameters *types.StartParameters)

Start starts up the required compute and public interface

func (*Session) Stop

func (session *Session) Stop()

Stop terminates the ecs instance and remove any attached resources

type SsmSession

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

func (*SsmSession) GetParameterValue added in v0.0.2

func (session *SsmSession) GetParameterValue(name string) (value *string, err error)

func (*SsmSession) SaveParameter added in v0.0.2

func (session *SsmSession) SaveParameter(name string, value string) (version *int64, err error)

type Stack

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

func NewStack

func NewStack(name string, awsSession *Session) *Stack

func (*Stack) Create

func (stack *Stack) Create(stackFileName string, parameters []cloudformation.Parameter) error

Create creates stack, reports success if successfully create as well as if it already exist This function waits for completion

func (*Stack) CreateChangeSet

func (stack *Stack) CreateChangeSet(name string, changesetType cloudformation.ChangeSetType, templateBody string, parameters []cloudformation.Parameter) *ChangeSet

CreateChangeSet create a changeset

func (*Stack) Delete

func (stack *Stack) Delete() *string

Delete remove stack, waits for completion

func (*Stack) Describe

func (stack *Stack) Describe() (description *cloudformation.Stack, err error)

func (*Stack) GetEvents

func (stack *Stack) GetEvents(opToken string) (events []cloudformation.StackEvent, err error)

GetEvents retrieves the events for a specific operation

func (*Stack) Update

func (stack *Stack) Update(stackFileName string, parameters []cloudformation.Parameter) error

Update creates stack, reports success if successfully create as well as if it already exist This function waits for completion

type StackUpdateCompletion

type StackUpdateCompletion string

type Template

type Template string
const (
	TemplateParamStoreKeyPath Template = "/allEnvs/%s/pstoreKey"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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