util

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2018 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AppGitState  = ""
	AppGitCommit = ""
	AppVersion   = "canary"
)

Functions

func ContextWithStopCh

func ContextWithStopCh(ctx context.Context, stopCh <-chan struct{}) context.Context

func CreateEventRecorder

func CreateEventRecorder(kubecli kubernetes.Interface, name, namespace string) record.EventRecorder

func GetPodHostName

func GetPodHostName() string

func GetPodName

func GetPodName() string

func GetPodNamespace

func GetPodNamespace() string

func GetVersion added in v0.1.4

func GetVersion() string

func JobConditionIndex

func JobConditionIndex(ty batch.JobConditionType, cs []batch.JobCondition) (int, bool)

JobConditionIndex

func RandStringLowerLetters

func RandStringLowerLetters(n int) string

func RandStringUser

func RandStringUser(n int) string

func RandomString

func RandomString(length int) string

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