Documentation ¶
Index ¶
- func BoolPtrIsNilOrFalse(ptr *bool) bool
- func BoolPtrIsTrue(ptr *bool) bool
- func GetIndexFromSlice(s []string, match string) int
- func IntsToStrings(is []int32) (ss []string)
- func MergeStringMaps(src, dst map[string]string) map[string]string
- func ParseImageDefinition(def *v1alpha1.OCIImageDefinition) (string, error)
- func RemoveFromSlice(s []string, i int) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BoolPtrIsNilOrFalse ¶
BoolPtrIsNilOrFalse returns true if bool pointer is nil or false, otherwise this returns false.
func BoolPtrIsTrue ¶
BoolPtrIsTrue returns true if bool pointer is true. This returns false if pointer is false or nil.
func GetIndexFromSlice ¶
GetIndexFromSlice returns the index of a specific string in a slice or -1 if the value is not present.
func IntsToStrings ¶
IntsToStrings converts an integer slice into a string slice.
func MergeStringMaps ¶
MergeStringMaps merges the src map into the dst.
func ParseImageDefinition ¶
func ParseImageDefinition(def *v1alpha1.OCIImageDefinition) (string, error)
ParseImageDefinition generates a fully-qualified image reference to an OCI image. An error will be returned when the image definition is invalid.
func RemoveFromSlice ¶
RemoveFromSlice removes index i from slice s. Does not maintain order of the original slice. https://stackoverflow.com/a/37335777/13979167
Types ¶
This section is empty.