bluegreen

package
v0.0.0-...-2954fb5 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2016 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlueGreen

type BlueGreen struct {
	Blue       BlueGreenTarget     `yaml:"blue"`
	Green      BlueGreenTarget     `yaml:"green"`
	PrimaryElb string              `yaml:"primary_elb"`
	StandbyElb string              `yaml:"standby_elb"`
	ChainElb   []BlueGreenChainElb `yaml:"chain_elb"`
}

func CreateBlueGreen

func CreateBlueGreen(data string) (*BlueGreen, error)

type BlueGreenChainElb

type BlueGreenChainElb struct {
	PrimaryElb string `yaml:"primary_elb"`
	StandbyElb string `yaml:"standby_elb"`
}

type BlueGreenController

type BlueGreenController struct {
	ClusterController *service.ServiceController
	// contains filtered or unexported fields
}

func NewBlueGreenController

func NewBlueGreenController(manager *aws.AwsManager, projectDir string, targetResource string, params map[string]string) (*BlueGreenController, error)

func (*BlueGreenController) ApplyBlueGreenDeploy

func (self *BlueGreenController) ApplyBlueGreenDeploy(bgplan *BlueGreenPlan, nodeploy bool) error

func (*BlueGreenController) ApplyBlueGreenDeploys

func (self *BlueGreenController) ApplyBlueGreenDeploys(plans []*BlueGreenPlan, nodeploy bool) error

func (*BlueGreenController) CreateBlueGreenPlan

func (self *BlueGreenController) CreateBlueGreenPlan(bluegreen *BlueGreen, cplans []*service.ServiceUpdatePlan) (*BlueGreenPlan, error)

func (*BlueGreenController) CreateBlueGreenPlans

func (self *BlueGreenController) CreateBlueGreenPlans(bgmap map[string]*BlueGreen, cplans []*service.ServiceUpdatePlan) ([]*BlueGreenPlan, error)

func (*BlueGreenController) GetBlueGreenMap

func (self *BlueGreenController) GetBlueGreenMap() map[string]*BlueGreen

type BlueGreenPlan

type BlueGreenPlan struct {
	Blue       *ServiceSet
	Green      *ServiceSet
	PrimaryElb string
	StandbyElb string
	ChainElb   []BlueGreenChainElb
}

func (*BlueGreenPlan) IsBlueWithPrimaryElb

func (self *BlueGreenPlan) IsBlueWithPrimaryElb() bool

type BlueGreenTarget

type BlueGreenTarget struct {
	Cluster          string `yaml:"cluster"`
	Service          string `yaml:"service"`
	AutoscalingGroup string `yaml:"autoscaling_group"`
}

type ServiceSet

type ServiceSet struct {
	CurrentService    *ecs.Service
	NewService        *BlueGreenTarget
	AutoScalingGroup  *autoscaling.Group
	ClusterUpdatePlan *service.ServiceUpdatePlan
}

Jump to

Keyboard shortcuts

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