Documentation
¶
Index ¶
- Constants
- func AddHighResolutionTag(tags interface{})
- func FilterReservedKeys(input any) any
- func GetAutoScalingGroupName(instanceID string) string
- func GetEKSClusterName(instanceID string) string
- func ResetEC2APIProvider()
- func ResetTagsCache()
- func SetEC2APIProviderForTesting(provider func() interface{ ... })
- type TagsCache
Constants ¶
View Source
const ( EKSClusterNameTagKeyPrefix = "kubernetes.io/cluster/" HighResolutionTagKey = "aws:StorageResolution" AggregationIntervalTagKey = "aws:AggregationInterval" )
Variables ¶
This section is empty.
Functions ¶
func AddHighResolutionTag ¶
func AddHighResolutionTag(tags interface{})
AddHighResolutionTag adds the high resolution tag to the provided tags map
func FilterReservedKeys ¶
FilterReservedKeys filters out reserved tag keys from the input
func GetAutoScalingGroupName ¶
GetAutoScalingGroupName gets the AutoScaling Group name for an instance
func GetEKSClusterName ¶
GetEKSClusterName gets the EKS cluster name for an instance
func ResetEC2APIProvider ¶
func ResetEC2APIProvider()
func ResetTagsCache ¶
func ResetTagsCache()
func SetEC2APIProviderForTesting ¶
func SetEC2APIProviderForTesting(provider func() interface {
DescribeTags(input *ec2.DescribeTagsInput) (*ec2.DescribeTagsOutput, error)
})
Test functions
Types ¶
Click to show internal directories.
Click to hide internal directories.