util

package
v0.0.0-...-b7fcf81 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Logger = GetLogger(false)

Logger is a new instance of the logger. You can have any number of instances.

Functions

func GetClientConfig

func GetClientConfig(kubeconfig string) (*rest.Config, error)

GetClientConfig return rest config, if path not specified, assume in cluster config

func GetLogger

func GetLogger(debug bool) *logrus.Logger

GetLogger returns a new logger

func ReadCredentials

func ReadCredentials(client kubernetes.Interface, creds *v1alpha1.Credentials) (string, error)

ReadCredentials reads the credentials

func TarFile

func TarFile(source []string, destination string) error

TarFile zips/tars a file

func UntarFile

func UntarFile(source string, destination string) error

UntarFile un-zip/tar a file

Types

This section is empty.

Jump to

Keyboard shortcuts

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