util

package
v0.1.1-beta12 Latest Latest
Warning

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

Go to latest
Published: May 26, 2022 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorListToError

func ErrorListToError(errorList field.ErrorList) error

func EvaluateTemplate

func EvaluateTemplate(t *template.Template, data interface{}) string

func GenerateRandom

func GenerateRandom(n int) string

GenerateRandom generates random string.

func GetBytes

func GetBytes(key interface{}) ([]byte, error)

func Hash

func Hash(data []byte) string

func HashFNV

func HashFNV(s string) string

func ImagePullPolicyByTag

func ImagePullPolicyByTag(image string) corev1.PullPolicy

func ParseImageName

func ParseImageName(image string) (string, string, string, error)

ParseImageName parses a docker image string into three parts: repo, tag and digest. If both tag and digest are empty, a default image tag will be returned.

func SimpleHash

func SimpleHash(obj interface{}) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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