aws

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2021 License: Apache-2.0 Imports: 23 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 CreateSessionWithoutRegion added in v0.5.0

func CreateSessionWithoutRegion() (*session.Session, error)

func DeleteExpiredBuckets added in v0.5.0

func DeleteExpiredBuckets(s3session s3.S3, tagName string, dryRun bool) 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, cloudwatchLogsSession cloudwatchlogs.CloudWatchLogs, 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 DeleteExpiredLogs added in v0.6.0

func DeleteExpiredLogs(svc cloudwatchlogs.CloudWatchLogs, tagName string, dryRun bool) error

func DeleteExpiredRDSDatabases added in v0.2.0

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

func DeleteExpiredVPC added in v0.5.0

func DeleteExpiredVPC(ec2Session ec2.EC2, 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 TagLogsForDeletion added in v0.6.0

func TagLogsForDeletion(svc cloudwatchlogs.CloudWatchLogs, tagName string, clusterId string) error

func TagVolumesFromEksClusterForDeletion added in v0.4.0

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

Types

type CompleteKey added in v0.6.0

type CompleteKey struct {
	KeyId        string
	TTL          int64
	Tag          string
	Status       string
	CreationDate time.Time
}

type CompleteLogGroup added in v0.6.0

type CompleteLogGroup struct {
	// contains filtered or unexported fields
}

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