utils

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetKubeclient

func GetKubeclient(config *rest.Config) *kubernetes.Clientset

GetKubeclient returns a k8s clientset from the kubeconfig, if nil fallback to client from inCluster config.

func GetKubeconfig

func GetKubeconfig(kubeconfigPath string) (*rest.Config, error)

GetKubeconfig builds config from the kubeconfig path, if nil fallback to inCluster config.

func GetUsrHomeDir

func GetUsrHomeDir() string

GetUsrHomeDir returns the current user's Home Directory

func InitializeLogger

func InitializeLogger()

InitializeLogger sets and configures logger options.

func OpenFile

func OpenFile(filename string) *os.File

OpenFile handles opening file in Read/Write mode, creating and appending to it as needed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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