cloudtest

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTestAutoScalingGroup

func CreateTestAutoScalingGroup(name, launchConfigurationName string, launchTemplateSpecification *autoscaling.LaunchTemplateSpecification, instances []*autoscaling.Instance, withMixedInstancesPolicy bool) *autoscaling.Group

func CreateTestAutoScalingInstance

func CreateTestAutoScalingInstance(id, launchConfigurationName string, launchTemplateSpecification *autoscaling.LaunchTemplateSpecification, lifeCycleState string) *autoscaling.Instance

func CreateTestEc2Instance

func CreateTestEc2Instance(id string) *ec2.Instance

Types

type MockAutoScalingService

type MockAutoScalingService struct {
	autoscalingiface.AutoScalingAPI

	Counter           map[string]int64
	AutoScalingGroups map[string]*autoscaling.Group
}

func NewMockAutoScalingService

func NewMockAutoScalingService(autoScalingGroups []*autoscaling.Group) *MockAutoScalingService

func (*MockAutoScalingService) DescribeAutoScalingGroupsPages added in v1.3.0

func (*MockAutoScalingService) SetDesiredCapacity

type MockEC2Service

type MockEC2Service struct {
	ec2iface.EC2API

	Counter   map[string]int64
	Templates []*ec2.LaunchTemplate
}

func NewMockEC2Service

func NewMockEC2Service(templates []*ec2.LaunchTemplate) *MockEC2Service

func (*MockEC2Service) DescribeLaunchTemplateByID

func (m *MockEC2Service) DescribeLaunchTemplateByID(input *ec2.DescribeLaunchTemplatesInput) (*ec2.LaunchTemplate, error)

func (*MockEC2Service) DescribeLaunchTemplates

Jump to

Keyboard shortcuts

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