tracking

package
v0.0.0-...-506879c Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDefaultProvider

func NewDefaultProvider(tagPrefix string, clusterName string) *defaultProvider

NewDefaultProvider constructs defaultProvider

Types

type Provider

type Provider interface {
	// ResourceIDTagKey provide the tagKey for resourceID.
	ResourceIDTagKey() string

	// StackTags provide the tags for stack.
	StackTags(stack core.Stack) map[string]string

	// ResourceTags provide the tags for stack resources
	ResourceTags(stack core.Stack, res core.Resource, additionalTags map[string]string) map[string]string

	// StackLabels provide the suitable k8s labels for stack.
	StackLabels(stack core.Stack) map[string]string

	// StackTagsLegacy provides the tags for stack with legacy clusterName.
	// this is for backwards compatibility with AWSALBIngressController(v1.1.3+)
	StackTagsLegacy(stack core.Stack) map[string]string

	// LegacyTagKeys returns AWS tag keys added to AWS resources provisioned by AWSALBIngressController(v1.1.3+).
	// These tag keys is required for AWSALBIngressController(v1.1.3+) to identify resources.
	// To be able to downgrade AWSLoadBalancerController to AWSALBIngressController(v1.1.3+), we shouldn't remove these tag keys.
	LegacyTagKeys() []string
}

an abstraction that generates metadata to track actual resources provisioned for stack.

type TagFilter

type TagFilter map[string][]string

TagFilter presents tag filter for multiple TagKeys. the TagKey is represented by mapKey, and TagValues is represented by tagValues if the TagValue is empty, then it only requires the TagKey presents. if the TagValue is not empty, then it requires TagKey presents and one of the TagValue matches.

func TagsAsTagFilter

func TagsAsTagFilter(tags map[string]string) TagFilter

TagsAsTagFilter constructs TagFilter from Tags.

func (TagFilter) Matches

func (f TagFilter) Matches(tags map[string]string) bool

Jump to

Keyboard shortcuts

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