kubectl

package
v0.0.0-...-6694955 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const UserName = "datica"

UserName is the name that is used by default.

Variables

This section is empty.

Functions

func Execute

func Execute(configPath string, args ...string) ([]byte, error)

Execute runs a command against kubectl, returning the contents of stdout and printing any stderr.

func GetConfig

func GetConfig(configPath string) (*api.Config, error)

GetConfig parses and returns a kubeconfig file.

func GetUserInfo

func GetUserInfo(configPath string) (*api.AuthInfo, error)

GetUserInfo returns the configured information for the user session. Nil if it doesn't exist.

func PersistUser

func PersistUser(configPath, sessionToken string) error

PersistUser persists a session token to the datica user in the desired (or default) kubeconfig.

func VerifyInstallation

func VerifyInstallation() error

VerifyInstallation returns an error if kubectl isn't installed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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