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.
Click to show internal directories.
Click to hide internal directories.