aws

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2021 License: Apache-2.0 Imports: 19 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthenticateToEks added in v0.3.0

func AuthenticateToEks(clusterName string, clusterUrl string, roleArn string, session *session.Session) (*kubernetes.Clientset, error)

func CreateSession

func CreateSession(region string) (*session.Session, error)

func DeleteExpiredDocumentDBClusters added in v0.2.0

func DeleteExpiredDocumentDBClusters(svc rds.RDS, tagName string, dryRun bool) error

func DeleteExpiredEKSClusters added in v0.4.0

func DeleteExpiredEKSClusters(svc eks.EKS, ec2Session ec2.EC2, elbSession elbv2.ELBV2, tagName string, dryRun bool) error

func DeleteExpiredElasticacheDatabases added in v0.2.0

func DeleteExpiredElasticacheDatabases(svc elasticache.ElastiCache, tagName string, dryRun bool) error

func DeleteExpiredLoadBalancers added in v0.4.0

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

func DeleteExpiredRDSDatabases added in v0.2.0

func DeleteExpiredRDSDatabases(svc rds.RDS, tagName string, dryRun bool) error

func DeleteExpiredVolumes added in v0.4.0

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

func ElasticacheSession added in v0.2.0

func ElasticacheSession(sess session.Session, region string) *elasticache.ElastiCache

func RdsSession

func RdsSession(sess session.Session, region string) *rds.RDS

func RunPlecoAWS added in v0.4.0

func RunPlecoAWS(cmd *cobra.Command, regions []string, interval int64, dryRun bool)

func TagLoadBalancersForDeletion added in v0.4.0

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

func TagVolumesFromEksClusterForDeletion added in v0.4.0

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

Types

type EBSVolume added in v0.4.0

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

type ElasticLoadBalancer added in v0.4.0

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

func ListLoadBalancers added in v0.4.0

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

func ListTaggedLoadBalancersWithKeyContains added in v0.4.0

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

Jump to

Keyboard shortcuts

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