ec2

package
v0.7.9 Latest Latest
Warning

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

Go to latest
Published: May 6, 2021 License: Apache-2.0 Imports: 7 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, clusterName string) error

func TagSshKeys added in v0.7.5

func TagSshKeys(ec2session ec2.EC2, clusterName string, clusterCreationTime time.Time, clusterTtl int64) 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
	IsProtected bool
}

type ElasticLoadBalancer

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

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

	IsProtected bool
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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