utils

package
v3.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 13 Imported by: 13

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FuncMap = template.FuncMap{"toYaml": ToYAML, "indent": Indent}

Functions

func Indent

func Indent(n int, text string) string

func KubeConfigFormByte added in v3.1.0

func KubeConfigFormByte(data []byte) (*rest.Config, error)

func NewClient

func NewClient(config string) (*kubernetes.Clientset, error)

func NewClientForCluster added in v3.1.0

func NewClientForCluster(kubeConfig []byte) (*kubernetes.Clientset, error)

func ResetTmpDir

func ResetTmpDir(runtime connector.Runtime) error

func ToYAML

func ToYAML(v interface{}) 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