Documentation ¶
Index ¶
- func AuthenticateToEks(clusterName string, clusterUrl string, roleArn string, ...) (*kubernetes.Clientset, error)
- func CreateSession(region string) (*session.Session, error)
- func CreateSessionWithoutRegion() (*session.Session, error)
- func DeleteDetachedPolicies(iamSession *iam.IAM, dryRun bool)
- func DeleteEmptyRepositories(ecrSession *ecr.ECR, drynRun bool)
- func DeleteExpiredBuckets(s3session s3.S3, tagName string, dryRun bool)
- func DeleteExpiredDocumentDBClusters(svc rds.RDS, tagName string, dryRun bool)
- func DeleteExpiredEKSClusters(svc eks.EKS, ec2Session ec2.EC2, elbSession elbv2.ELBV2, ...)
- func DeleteExpiredElasticacheDatabases(svc elasticache.ElastiCache, tagName string, dryRun bool)
- func DeleteExpiredIAM(iamSession *iam.IAM, tagName string, dryRun bool)
- func DeleteExpiredKeyPairs(ec2session *ec2.EC2, tagName string, dryRun bool)
- func DeleteExpiredKeys(svc kms.KMS, tagName string, dryRun bool)
- func DeleteExpiredLoadBalancers(elbSession elbv2.ELBV2, tagName string, dryRun bool)
- func DeleteExpiredLogs(svc cloudwatchlogs.CloudWatchLogs, tagName string, dryRun bool)
- func DeleteExpiredRDSDatabases(svc rds.RDS, tagName string, dryRun bool)
- func DeleteExpiredRDSSubnetGroups(svc rds.RDS, tagName string, dryRun bool)
- func DeleteExpiredRoles(iamSession *iam.IAM, tagName string, dryRun bool)
- func DeleteExpiredUsers(iamSession *iam.IAM, tagName string, dryRun bool)
- func DeleteExpiredVPC(ec2Session ec2.EC2, tagName string, dryRun bool)
- func DeleteExpiredVolumes(ec2Session ec2.EC2, tagName string, dryRun bool)
- func DeleteGroups(iamSession *iam.IAM, dryRun bool)
- func DeleteInternetGatewaysByIds(ec2Session ec2.EC2, internetGateways []InternetGateway)
- func DeleteRDSDatabase(svc rds.RDS, database rdsDatabase) error
- func DeleteRouteTablesByIds(ec2Session ec2.EC2, routeTables []RouteTable)
- func DeleteSecurityGroupsByIds(ec2Session ec2.EC2, securityGroups []SecurityGroup)
- func DeleteSubnetsByIds(ec2Session ec2.EC2, subnets []Subnet)
- func ElasticacheSession(sess session.Session, region string) *elasticache.ElastiCache
- func GetRDSInstanceInfos(svc rds.RDS, databaseIdentifier string) (rdsDatabase, error)
- func GetVpcsIdsByClusterNameTag(ec2Session ec2.EC2, clusterName string) []*string
- func HandleRolePolicies(iamSession *iam.IAM, roleName string)
- func HandleUserPolicies(iamSession *iam.IAM, userName string)
- func RdsSession(sess session.Session, region string) *rds.RDS
- func RunPlecoAWS(cmd *cobra.Command, regions []string, interval int64, dryRun bool, ...)
- func SetInternetGatewaysIdsByVpcId(ec2Session ec2.EC2, vpc *VpcInfo, waitGroup *sync.WaitGroup, tagName string)
- func SetRouteTablesIdsByVpcId(ec2Session ec2.EC2, vpc *VpcInfo, waitGroup *sync.WaitGroup, tagName string)
- func SetSecurityGroupsIdsByVpcId(ec2Session ec2.EC2, vpc *VpcInfo, waitGroup *sync.WaitGroup, tagName string)
- func SetSubnetsIdsByVpcId(ec2Session ec2.EC2, vpc *VpcInfo, waitGroup *sync.WaitGroup, tagName string)
- func TagLoadBalancersForDeletion(lbSession elbv2.ELBV2, tagKey string, loadBalancersList []ElasticLoadBalancer, ...) error
- func TagLogsForDeletion(svc cloudwatchlogs.CloudWatchLogs, tagName string, clusterId string) error
- func TagVolumesFromEksClusterForDeletion(ec2Session ec2.EC2, tagKey string, clusterName string) error
- type CompleteKey
- type CompleteLogGroup
- type EBSVolume
- type ElasticLoadBalancer
- type InternetGateway
- type KeyPair
- type Policy
- type Role
- type RouteTable
- type SecurityGroup
- type Subnet
- type User
- type VpcInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthenticateToEks ¶
func DeleteDetachedPolicies ¶
func DeleteEmptyRepositories ¶
func DeleteExpiredElasticacheDatabases ¶
func DeleteExpiredElasticacheDatabases(svc elasticache.ElastiCache, tagName string, dryRun bool)
func DeleteExpiredKeyPairs ¶
func DeleteExpiredLogs ¶
func DeleteExpiredLogs(svc cloudwatchlogs.CloudWatchLogs, tagName string, dryRun bool)
func DeleteExpiredVolumes ¶
func DeleteGroups ¶
func DeleteInternetGatewaysByIds ¶
func DeleteInternetGatewaysByIds(ec2Session ec2.EC2, internetGateways []InternetGateway)
func DeleteRDSDatabase ¶
func DeleteRouteTablesByIds ¶
func DeleteRouteTablesByIds(ec2Session ec2.EC2, routeTables []RouteTable)
func DeleteSecurityGroupsByIds ¶
func DeleteSecurityGroupsByIds(ec2Session ec2.EC2, securityGroups []SecurityGroup)
func DeleteSubnetsByIds ¶
func ElasticacheSession ¶
func ElasticacheSession(sess session.Session, region string) *elasticache.ElastiCache
func GetRDSInstanceInfos ¶
func HandleRolePolicies ¶
func HandleUserPolicies ¶
func RunPlecoAWS ¶
func SetSubnetsIdsByVpcId ¶
func TagLogsForDeletion ¶
func TagLogsForDeletion(svc cloudwatchlogs.CloudWatchLogs, tagName string, clusterId string) error
Types ¶
type CompleteKey ¶
type CompleteLogGroup ¶
type CompleteLogGroup struct { IsProtected bool // contains filtered or unexported fields }
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 InternetGateway ¶
type RouteTable ¶
type SecurityGroup ¶
type VpcInfo ¶
type VpcInfo struct { VpcId *string SecurityGroups []SecurityGroup InternetGateways []InternetGateway Subnets []Subnet RouteTables []RouteTable Status string TTL int64 Tag string CreationDate time.Time IsProtected bool }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.