Documentation ¶
Index ¶
- func CheckClusterSnapshot(snap *rds.DBClusterSnapshot) bool
- func CheckElasticacheSnapshot(snap *elasticache.Snapshot) bool
- func CheckEnvVars(cloudProvider string, cmd *cobra.Command)
- func CheckIfExpired(creationTime time.Time, ttl int64, resourceNameDescription string, ...) bool
- func CheckSnapshot(snap *rds.DBSnapshot) bool
- func DeleteBucket(bucketApi *minio.Client, bucket MinioBucket, region string)
- func ElemToDeleteFormattedInfos(elemName string, arraySize int, region string, isZone ...bool) (string, string)
- func EmptyBucket(bucketApi *minio.Client, bucketName string, objects []minio.ObjectInfo)
- func InitFlags(cloudProvider string, startCmd *cobra.Command)
- func IsAssociatedToLivingCluster(tagsInput interface{}, svc *eks.EKS) bool
- func ListBucketObjects(bucketApi *minio.Client, ctx context.Context, bucketName string) []minio.ObjectInfo
- type CloudProviderResource
- type EssentialTags
- type MinioBucket
- type MyTag
- type ResourceTags
- type Tag
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckClusterSnapshot ¶
func CheckClusterSnapshot(snap *rds.DBClusterSnapshot) bool
func CheckElasticacheSnapshot ¶ added in v0.13.27
func CheckElasticacheSnapshot(snap *elasticache.Snapshot) bool
func CheckEnvVars ¶
func CheckIfExpired ¶
func CheckSnapshot ¶
func CheckSnapshot(snap *rds.DBSnapshot) bool
func DeleteBucket ¶
func DeleteBucket(bucketApi *minio.Client, bucket MinioBucket, region string)
func EmptyBucket ¶
func EmptyBucket(bucketApi *minio.Client, bucketName string, objects []minio.ObjectInfo)
func ListBucketObjects ¶
Types ¶
type CloudProviderResource ¶
type CloudProviderResource struct { Identifier string Description string CreationDate time.Time TTL int64 Tag string IsProtected bool }
func (*CloudProviderResource) IsResourceExpired ¶
func (resource *CloudProviderResource) IsResourceExpired(commandLineTagValue string, disableTTLCheck bool) bool
type EssentialTags ¶
type EssentialTags struct { CreationDate time.Time TTL int64 IsProtected bool ClusterId string Tag string }
func GetEssentialTags ¶
func GetEssentialTags(tagsInput interface{}, tagName string) EssentialTags
type MinioBucket ¶
type MinioBucket struct { CloudProviderResource ObjectsInfos []minio.ObjectInfo }
func GetExpiredBuckets ¶
func GetExpiredBuckets(bucketApi *minio.Client, tagName string, region string, tagValue string, disableTTLCheck bool) []MinioBucket
func GetUnusedBuckets ¶
func GetUnusedBuckets(bucketApi *minio.Client, tagName string, region string, isDestroyingCommand bool) []MinioBucket
type ResourceTags ¶ added in v0.14.0
Click to show internal directories.
Click to hide internal directories.