asg

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

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

Types

type ASG

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

	MinSize         *int64
	MaxSize         *int64
	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 GetInstances

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

GetInstances returns all instances on an ASG

func (*ASG) AllowedService

func (s *ASG) AllowedService() *string

AllowedService returns which service is allowed to attach to it

func (*ASG) AttachedLBs

func (s *ASG) AttachedLBs(asgc aws.ASGAPI) ([]string, error)

func (*ASG) ConfigName

func (s *ASG) ConfigName() *string

ConfigName returns tag

func (*ASG) Detach

func (s *ASG) Detach(asgc aws.ASGAPI) error

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