utils

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2018 License: Apache-2.0 Imports: 3 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpandToFQIN

func ExpandToFQIN(source string) string

ExpandToFQIN converts partial image name to "Fully Qualified Image Name" E.g. eaapa/hello-world -> docker.io/eaapa/hello-world:latest

func GetFQINImage

func GetFQINImage(fqin string) string

GetFQINImage returns image part from FQIN E.g. docker.io/eaapa/hello-world:latest -> hello-world

func GetFQINUsername

func GetFQINUsername(fqin string) string

GetFQINUsername returns username part from FQIN E.g. docker.io/eaapa/hello-world:latest -> eaapa

func GetFirst added in v0.2.5

func GetFirst(l []string, d string) string

GetFirst return first element from the list or default if list is empty

func MergeLists

func MergeLists(lists ...[]string) []string

MergeLists merge two or more lists without duplicating items

func RotateL

func RotateL(a *[]string)

RotateL rotates the byte array to left by one

func RotateLBy

func RotateLBy(a *[]string, i int)

RotateLBy rotates the string array to left by given steps

func RotateR

func RotateR(a *[]string)

RotateR rotates the string array to right by one

func RotateRBy

func RotateRBy(a *[]string, i int)

RotateRBy rotates the string array to right by given steps

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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