autoscaling

package
v0.12.12-rc2 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Generated by go-decorator, DO NOT EDIT

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Activity

type Activity struct {
	*autoscaling.Activity
}

type AutoScaling

type AutoScaling struct {
	Connect func() (AutoScalingInternal, error)
	// contains filtered or unexported fields
}

func (*AutoScaling) AttachLoadBalancer

func (this *AutoScaling) AttachLoadBalancer(autoScalingGroupName, loadBalancerName string) (err error)

func (*AutoScaling) CreateAutoScalingGroup

func (this *AutoScaling) CreateAutoScalingGroup(name, launchConfigName, subnets string, minSize, maxSize int) error

func (*AutoScaling) CreateLaunchConfiguration

func (this *AutoScaling) CreateLaunchConfiguration(
	name *string,
	amiID *string,
	iamInstanceProfile *string,
	instanceType *string,
	keyName *string,
	userData *string,
	securityGroups []*string,
	volSizes map[string]int,
) error

func (*AutoScaling) DeleteAutoScalingGroup

func (this *AutoScaling) DeleteAutoScalingGroup(name *string) error

func (*AutoScaling) DeleteLaunchConfiguration

func (this *AutoScaling) DeleteLaunchConfiguration(name *string) error

func (*AutoScaling) DescribeAutoScalingGroup

func (this *AutoScaling) DescribeAutoScalingGroup(name string) (*Group, error)

func (*AutoScaling) DescribeAutoScalingGroups

func (this *AutoScaling) DescribeAutoScalingGroups(names []*string) ([]*Group, error)

func (*AutoScaling) DescribeLaunchConfiguration

func (this *AutoScaling) DescribeLaunchConfiguration(name string) (*LaunchConfiguration, error)

func (*AutoScaling) DescribeLaunchConfigurations

func (this *AutoScaling) DescribeLaunchConfigurations(names []*string) ([]*LaunchConfiguration, error)

func (*AutoScaling) SetDesiredCapacity

func (this *AutoScaling) SetDesiredCapacity(name string, size int) error

func (*AutoScaling) TerminateInstanceInAutoScalingGroup

func (this *AutoScaling) TerminateInstanceInAutoScalingGroup(instanceID string, decrement bool) (*Activity, error)

func (*AutoScaling) UpdateAutoScalingGroupMaxSize

func (this *AutoScaling) UpdateAutoScalingGroupMaxSize(name string, size int) error

func (*AutoScaling) UpdateAutoScalingGroupMinSize

func (this *AutoScaling) UpdateAutoScalingGroupMinSize(name string, size int) error

type Group

type Group struct {
	*autoscaling.Group
}

func NewGroup

func NewGroup() *Group

type LaunchConfiguration

type LaunchConfiguration struct {
	*autoscaling.LaunchConfiguration
}

func NewLaunchConfiguration

func NewLaunchConfiguration(size, ami string) *LaunchConfiguration

type Provider

type Provider interface {
	AttachLoadBalancer(autoScalingGroupName, loadBalancerName string) error
	CreateLaunchConfiguration(name, amiID, iamInstanceProfile, instanceType, keyName, userData *string, securityGroups []*string, volSize map[string]int) error
	CreateAutoScalingGroup(name, launchConfigName, subnets string, minCount, maxCount int) error
	SetDesiredCapacity(name string, size int) error
	UpdateAutoScalingGroupMaxSize(name string, size int) error
	UpdateAutoScalingGroupMinSize(name string, size int) error
	DescribeAutoScalingGroups(names []*string) ([]*Group, error)
	DescribeAutoScalingGroup(name string) (*Group, error)
	DescribeLaunchConfigurations(names []*string) ([]*LaunchConfiguration, error)
	DescribeLaunchConfiguration(name string) (*LaunchConfiguration, error)
	DeleteAutoScalingGroup(name *string) error
	DeleteLaunchConfiguration(name *string) error
	TerminateInstanceInAutoScalingGroup(instanceID string, decrement bool) (*Activity, error)
}

func NewAutoScaling

func NewAutoScaling(credProvider provider.CredProvider, region string) (Provider, error)

type ProviderDecorator

type ProviderDecorator struct {
	Inner     Provider
	Decorator func(name string, call func() error) error
}

func (*ProviderDecorator) AttachLoadBalancer

func (this *ProviderDecorator) AttachLoadBalancer(p0 string, p1 string) (err error)

func (*ProviderDecorator) CreateAutoScalingGroup

func (this *ProviderDecorator) CreateAutoScalingGroup(p0 string, p1 string, p2 string, p3 int, p4 int) (err error)

func (*ProviderDecorator) CreateLaunchConfiguration

func (this *ProviderDecorator) CreateLaunchConfiguration(p0 *string, p1 *string, p2 *string, p3 *string, p4 *string, p5 *string, p6 []*string, p7 map[string]int) (err error)

func (*ProviderDecorator) DeleteAutoScalingGroup

func (this *ProviderDecorator) DeleteAutoScalingGroup(p0 *string) (err error)

func (*ProviderDecorator) DeleteLaunchConfiguration

func (this *ProviderDecorator) DeleteLaunchConfiguration(p0 *string) (err error)

func (*ProviderDecorator) DescribeAutoScalingGroup

func (this *ProviderDecorator) DescribeAutoScalingGroup(p0 string) (v0 *Group, err error)

func (*ProviderDecorator) DescribeAutoScalingGroups

func (this *ProviderDecorator) DescribeAutoScalingGroups(p0 []*string) (v0 []*Group, err error)

func (*ProviderDecorator) DescribeLaunchConfiguration

func (this *ProviderDecorator) DescribeLaunchConfiguration(p0 string) (v0 *LaunchConfiguration, err error)

func (*ProviderDecorator) DescribeLaunchConfigurations

func (this *ProviderDecorator) DescribeLaunchConfigurations(p0 []*string) (v0 []*LaunchConfiguration, err error)

func (*ProviderDecorator) SetDesiredCapacity

func (this *ProviderDecorator) SetDesiredCapacity(p0 string, p1 int) (err error)

func (*ProviderDecorator) TerminateInstanceInAutoScalingGroup

func (this *ProviderDecorator) TerminateInstanceInAutoScalingGroup(p0 string, p1 bool) (v0 *Activity, err error)

func (*ProviderDecorator) UpdateAutoScalingGroupMaxSize

func (this *ProviderDecorator) UpdateAutoScalingGroupMaxSize(p0 string, p1 int) (err error)

func (*ProviderDecorator) UpdateAutoScalingGroupMinSize

func (this *ProviderDecorator) UpdateAutoScalingGroupMinSize(p0 string, p1 int) (err error)

Directories

Path Synopsis
Package mock_autoscaling is a generated GoMock package.
Package mock_autoscaling is a generated GoMock package.

Jump to

Keyboard shortcuts

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