util

package
v0.0.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// KeyPairSeparator separator for key value pair
	KeyPairSeparator = "="
	// SecretNameKeySeparator separator for secret key value pair
	SecretNameKeySeparator = "#"
)

Variables

This section is empty.

Functions

func CheckFileExists

func CheckFileExists(path string) (bool, error)

CheckFileExists checks if the given path is valid

func CheckImageTag

func CheckImageTag(image string) error

CheckImageTag checks the given image tag

func CheckKeyPair

func CheckKeyPair(array []string) error

CheckKeyPair will parse the given string array for a valid key=pair format on each item. Returns an error if any item is not in the valid format.

func CheckSecretKeyPair

func CheckSecretKeyPair(secretKeyValuePair []string) error

CheckSecretKeyPair will parse the given string array for a valid key=pair#value format on each item. Returns an error if any item is not in the valid format.

func FromStringsKeyPairToMap

func FromStringsKeyPairToMap(array []string) map[string]string

FromStringsKeyPairToMap converts a string array in the key/pair format (key=value) to a map. Unconvertable strings will be skipped.

Types

This section is empty.

Jump to

Keyboard shortcuts

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