util

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTags

func GetTags(
	ctx context.Context,
	sdkapi *athena.Client,
	metrics *metrics.Metrics,
	resourceARN string,
) ([]*svcapitypes.Tag, error)

GetTags retrieves the resource's associated tags.

func SyncTags

func SyncTags(
	ctx context.Context,
	desiredTags []*svcapitypes.Tag,
	latestTags []*svcapitypes.Tag,
	latestACKResourceMetadata *ackv1alpha1.ResourceMetadata,
	toACKTags func(tags []*svcapitypes.Tag) acktags.Tags,
	sdkapi *athena.Client,
	metrics *metrics.Metrics,
) (err error)

SyncTags examines the Tags in the supplied Resource and calls the TagResourceWithContext and UntagResourceWithContext APIs to ensure that the set of associated Tags stays in sync with the Resource.Spec.Tags

Types

This section is empty.

Jump to

Keyboard shortcuts

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