services

package
v1.0.0-alpha Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEC2Instances

func GetEC2Instances(ctx context.Context, client *ec2.Client) ([]types.Reservation, error)

func StartEC2InstanceTermination

func StartEC2InstanceTermination(ctx context.Context, client *ec2.Client) error

Types

type EC2

type EC2 struct {
	InstanceId         string
	CloudCycle         string
	MarkForTermination bool
}

type EC2Instances

type EC2Instances struct {
	Instances []EC2
}

func MarkInstancesForTermination

func MarkInstancesForTermination(reservations []types.Reservation) (EC2Instances, error)

Jump to

Keyboard shortcuts

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