Back to godoc.org

Package utils

v1.11.0
Latest Go to latest

The latest major version is .

Published: Dec 24, 2018 | License: Apache-2.0 | Module: github.com/bittopaz/kops

Index

Variables

var (
	// Logger is the default logger
	Logger *zap.Logger
)

func FileExists

func FileExists(filename string) bool

FileExists checks if the file exists

func GetKubernetesClient

func GetKubernetesClient() (kubernetes.Interface, error)

GetKubernetesClient returns a kubernetes api client for us

func RandomBytes

func RandomBytes(length int) (string, error)

RandomBytes generates some random bytes

func Retry

func Retry(ctx context.Context, interval, timeout time.Duration, fn func() error) (err error)

Retry attempts to perform an operation for x time

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier