fake

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Key

func Key() *rsa.PrivateKey

Types

type Client

type Client struct {
	Name            string
	Instances       []Instance
	DesiredCapacity int
	// contains filtered or unexported fields
}

func New

func New(cfg aws.Config) *Client

func (*Client) DescribeInstances

func (c *Client) DescribeInstances(ctx context.Context, params *ec2.DescribeInstancesInput, optFns ...func(*ec2.Options)) (*ec2.DescribeInstancesOutput, error)

func (*Client) GetPasswordData

func (c *Client) GetPasswordData(ctx context.Context, params *ec2.GetPasswordDataInput, optFns ...func(*ec2.Options)) (*ec2.GetPasswordDataOutput, error)

func (*Client) SetDesiredCapacity

func (c *Client) SetDesiredCapacity(ctx context.Context, params *autoscaling.SetDesiredCapacityInput, optFns ...func(*autoscaling.Options)) (*autoscaling.SetDesiredCapacityOutput, error)

type Instance

type Instance struct {
	InstanceId string
	State      asgtypes.LifecycleState
}

Jump to

Keyboard shortcuts

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