util

package
v0.1.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolPtrIsTrue

func BoolPtrIsTrue(ptr *bool) bool

BoolPtrIsTrue returns true if bool pointer is true. This returns false if pointer is false or nil.

func IntsToStrings

func IntsToStrings(is []int32) (ss []string)

IntsToStrings converts an integer slice into a string slice.

func MergeStringMaps

func MergeStringMaps(src, dst map[string]string) map[string]string

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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