utils

package
v0.0.0-...-e94c852 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2021 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CurrentDir

func CurrentDir() string

func ExecToPodThroughAPI

func ExecToPodThroughAPI(command, containerName, podName, namespace string, stdin io.Reader) (string, string, error)

func Exists

func Exists(path string) (bool, error)

func GetClientConfig

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

func GetClientDynamic

func GetClientDynamic() (dynamic.Interface, error)

func GetClientFromDynamic

func GetClientFromDynamic(config *rest.Config) (dynamic.Interface, error)

func GetClientFromKubernetes

func GetClientFromKubernetes(config *rest.Config) (*kubernetes.Clientset, error)

func GetClientKubernetes

func GetClientKubernetes() (*kubernetes.Clientset, error)

func GetRESTClient

func GetRESTClient() (*rest.RESTClient, error)

func Indent

func Indent(n int, text string) string

func Render

func Render(tmpl *template.Template, variables map[string]interface{}) (string, error)

func RunCommand

func RunCommand(command string) string

func ToYAML

func ToYAML(v interface{}) string

Types

type Data

type Data map[string]interface{}

Jump to

Keyboard shortcuts

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