tags

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: 3 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,
) (missing, extra []*svcapitypes.Tag)

ComputeTagsDelta compares two Tag arrays and return two different lists containing the added and removed tags. The removed tags list only contains the Key of tags

func EqualStrings

func EqualStrings(a, b *string) bool

EqualStrings returns true if two strings are equal e.g., both are nil, one is nil and the other is empty string, or both non-zero strings are equal. TODO (@embano1): needs additional case -> a == "" && b == nil return true

func EqualTags

func EqualTags(
	desired []*svcapitypes.Tag,
	latest []*svcapitypes.Tag,
) bool

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

func EqualZeroString

func EqualZeroString(a *string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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