util

package
v0.0.0-...-0a488ca Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WorkerThreads = 50

	DefaultRKETools = "rancher/rke-tools:v0.1.31"
)

Variables

This section is empty.

Functions

func ErrList

func ErrList(e []error) error

func GetImageTagFromImage

func GetImageTagFromImage(image string) (string, error)

func GetObjectQueue

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

func GetTagMajorVersion

func GetTagMajorVersion(tag string) string

func IsFileExists

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

func StrToSemVer

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

func UniqueStringSlice

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