asg

package
v0.0.0-...-e131cc6 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2019 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ForProjectConfigNotReleaseIDServiceMap

func ForProjectConfigNotReleaseIDServiceMap(asgc aws.ASGAPI, projectName *string, configName *string, releaseID *string) (map[string]*ASG, error)

ForProjectConfigNotReleaseIDServiceMap finds all previous ASGs and returns them as a service map Will error if there is an ASG without a service name || two ASGs for a service

func GetInstances

func GetInstances(asgc aws.ASGAPI, asgName *string) (aws.Instances, error)

GetInstances returns all instances on an ASG

Types

type ASG

type ASG struct {
	ProjectNameTag *string
	ConfigNameTag  *string
	ServiceNameTag *string
	ReleaseIDTag   *string

	DesiredCapacity *int64

	AutoScalingGroupName    *string
	LaunchConfigurationName *string

	LoadBalancerNames []*string
	TargetGroupARNs   []*string
	// contains filtered or unexported fields
}

ASG struct

func ForProjectConfigNOTReleaseID

func ForProjectConfigNOTReleaseID(asgc aws.ASGAPI, projectName *string, configName *string, releaseID *string) ([]*ASG, error)

ForProjectConfigNOTReleaseID returns all ASGs not with the release ID

func ForProjectConfigReleaseID

func ForProjectConfigReleaseID(asgc aws.ASGAPI, projectName *string, configName *string, releaseID *string) ([]*ASG, error)

ForProjectConfigReleaseID returns all ASGs with a release ID

func (*ASG) ConfigName

func (s *ASG) ConfigName() *string

ConfigName returns tag

func (*ASG) ProjectName

func (s *ASG) ProjectName() *string

ProjectName returns tag

func (*ASG) ReleaseID

func (s *ASG) ReleaseID() *string

ReleaseID returns tag

func (*ASG) ServiceID

func (s *ASG) ServiceID() *string

ServiceID returns tag

func (*ASG) ServiceName

func (s *ASG) ServiceName() *string

ServiceName returns tag

func (*ASG) Teardown

func (s *ASG) Teardown(asgc aws.ASGAPI, cwc aws.CWAPI) error

Teardown deletes the ASG with launch config and alarms

type Input

type Input struct {
	*autoscaling.CreateAutoScalingGroupInput
}

Input input struct

func (*Input) AddTag

func (s *Input) AddTag(key string, value *string)

AddTag adds a tag to the input

func (*Input) Create

func (s *Input) Create(asgc aws.ASGAPI) error

Create calls to create an ASG

func (*Input) SetDefaults

func (s *Input) SetDefaults()

SetDefaults assigns default values

func (*Input) ToASG

func (s *Input) ToASG() *ASG

ToASG returns ASG object

Jump to

Keyboard shortcuts

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