tagutil

package
v1.300064.1 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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

func FilterReservedKeys(input any) any

FilterReservedKeys filters out reserved tag keys from the input

func GetAutoScalingGroupName

func GetAutoScalingGroupName(instanceID string) string

GetAutoScalingGroupName gets the AutoScaling Group name for an instance

func GetEKSClusterName

func GetEKSClusterName(instanceID string) string

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

type TagsCache

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

TagsCache holds the cached tags for an instance

Jump to

Keyboard shortcuts

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