ec2

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteExpiredKeys

func DeleteExpiredKeys(ec2session *ec2.EC2, tagName string, dryRun bool)

func DeleteExpiredLoadBalancers

func DeleteExpiredLoadBalancers(elbSession elbv2.ELBV2, tagName string, dryRun bool)

func DeleteExpiredVolumes

func DeleteExpiredVolumes(ec2Session ec2.EC2, tagName string, dryRun bool)

func TagLoadBalancersForDeletion

func TagLoadBalancersForDeletion(lbSession elbv2.ELBV2, tagKey string, loadBalancersList []ElasticLoadBalancer) error

func TagVolumesFromEksClusterForDeletion

func TagVolumesFromEksClusterForDeletion(ec2Session ec2.EC2, tagKey string, clusterName string) error

Types

type EBSVolume

type EBSVolume struct {
	VolumeId    string
	CreatedTime time.Time
	Status      string
	TTL         int64
}

type ElasticLoadBalancer

type ElasticLoadBalancer struct {
	Arn         string
	Name        string
	CreatedTime time.Time
	Status      string
	TTL         int64
}

func ListLoadBalancers

func ListLoadBalancers(lbSession elbv2.ELBV2) ([]ElasticLoadBalancer, error)

func ListTaggedLoadBalancersWithKeyContains

func ListTaggedLoadBalancersWithKeyContains(lbSession elbv2.ELBV2, tagContains string) ([]ElasticLoadBalancer, error)

type KeyPair

type KeyPair struct {
	KeyName      string
	KeyId        string
	CreationDate time.Time
	Tag          string
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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