util

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EqualTags

func EqualTags(
	a []*svcapitypes.Tag,
	b []*svcapitypes.Tag,
) bool

equalTags returns true if two Tag arrays are equal regardless of the order of their elements.

func GetResourceTags

func GetResourceTags(
	ctx context.Context,
	client tagsClient,
	mr metricsRecorder,
	resourceARN string,
) ([]*svcapitypes.Tag, error)

GetResourceTags retrieves a resource list of tags.

func SyncResourceTags

func SyncResourceTags(
	ctx context.Context,
	client tagsClient,
	mr metricsRecorder,
	resourceARN string,
	latestTags []*svcapitypes.Tag,
	desiredTags []*svcapitypes.Tag,
) error

SyncResourceTags uses TagResource and UntagResource API Calls to add, remove and update resource tags.

Types

This section is empty.

Jump to

Keyboard shortcuts

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