util

package
v0.3.0-rc7 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2019 License: Apache-2.0 Imports: 9 Imported by: 37

Documentation

Index

Constants

View Source
const (
	WorkerThreads = 50
)

Variables

This section is empty.

Functions

func ErrList added in v0.1.18

func ErrList(e []error) error

func GetDefaultRKETools added in v0.2.0

func GetDefaultRKETools(image string) (string, error)

func GetEnvVar added in v0.3.0

func GetEnvVar(key string) (string, string, bool)

GetEnvVar will lookup a given environment variable by key and return the key and value (to show what case got matched) with uppercase key being preferred

func GetImageTagFromImage added in v0.2.3

func GetImageTagFromImage(image string) (string, error)

func GetObjectQueue added in v0.1.18

func GetObjectQueue(l interface{}) chan interface{}

func GetTagMajorVersion added in v0.1.17

func GetTagMajorVersion(tag string) string

func IsFileExists added in v0.2.3

func IsFileExists(filePath string) (bool, error)
func IsSymlink(file string) (bool, error)

func StrToSemVer

func StrToSemVer(version string) (*semver.Version, error)

func StripPasswordFromURL added in v0.3.0

func StripPasswordFromURL(URL string) (string, error)

func UniqueStringSlice added in v0.2.0

func UniqueStringSlice(elements []string) []string

UniqueStringSlice - Input slice, retrun slice with unique elements. Will not maintain order.

Types

This section is empty.

Jump to

Keyboard shortcuts

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