util

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	HashRegexp = regexp.MustCompile(`^(sha1|sha2|sha256|sha512)-.*$`)
)

Functions

func ApplyDefaultImageTag

func ApplyDefaultImageTag(image string) (string, error)

TODO(euank): this is taken from kubelet/image/image_manager.go. "A little copying is better than a little dependency." -- https://go-proverbs.github.io/ This should not exist here, the kubelet should break out image and tag in the ImageStatusRequest and then we can leave it to parse. applyDefaultImageTag parses a docker image string, if it doesn't contain any tag or digest, a default tag will be applied.

func ExistInSlice

func ExistInSlice(inSlice []string, key string) bool

func GetCanonicalImageName

func GetCanonicalImageName(imageName string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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