strategy

package
v0.0.0-...-43590b0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2015 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerDefinition

type ContainerDefinition struct {
	Name         string
	Links        []string
	Image        string
	Essential    bool
	PortMappings map[int]int `mapstructure:"port_mappings"`
	Memory       int
	Environment  map[string]string
}

type ECSDeploymentStrategy

type ECSDeploymentStrategy struct {

	// Config Items
	ClusterName    string `mapstructure:"cluster_name"`
	Application    string
	Region         string `default:"ap-southeast-2"`
	TaskDefinition string `mapstructure:"task_definition"`
	ELB            string
	ElbId          string `mapstructure:"elb_id"`
	Containers     []ContainerDefinition
	Service        Service
	// contains filtered or unexported fields
}

func (*ECSDeploymentStrategy) Deploy

func (s *ECSDeploymentStrategy) Deploy() error

func (*ECSDeploymentStrategy) Rollback

func (s *ECSDeploymentStrategy) Rollback() error

func (*ECSDeploymentStrategy) Setup

func (s *ECSDeploymentStrategy) Setup()

func (*ECSDeploymentStrategy) Teardown

func (s *ECSDeploymentStrategy) Teardown()

type Service

type Service struct {
	Name        string
	Application string
}

type ShellDeploymentStrategy

type ShellDeploymentStrategy struct {
	Host             string `mapstructure:"ssh_host"`
	Shell            string
	ShellArgs        []string `mapstructure:"shell_args"`
	Commands         []string
	RollbackCommands []string `mapstructure:"rollback_commands"`
}

func (ShellDeploymentStrategy) Deploy

func (s ShellDeploymentStrategy) Deploy() error

func (ShellDeploymentStrategy) Rollback

func (s ShellDeploymentStrategy) Rollback() error

func (ShellDeploymentStrategy) Setup

func (s ShellDeploymentStrategy) Setup()

func (ShellDeploymentStrategy) Teardown

func (s ShellDeploymentStrategy) Teardown()

Jump to

Keyboard shortcuts

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