tags

package
v1.2.15 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComputeTagsDelta

func ComputeTagsDelta(
	desired []*svcapitypes.Tag,
	latest []*svcapitypes.Tag,
) (toAdd []*svcapitypes.Tag, toDelete []*svcapitypes.Tag)

computeTagsDelta compares two Tag arrays and return two different list containing the addedOrupdated and removed tags. The removed tags array only contains the tags Keys.

func Sync

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

Sync is responsible of taking two arrays of tags (desired and latest), comparing them, then making the appropriate APIs calls to up change the latest state into the desired state.

Types

This section is empty.

Jump to

Keyboard shortcuts

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