k8s

package
v0.0.0-...-78b33c2 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	KubectlBinary = "kubectl"
	RunCtrPrefix  = "astu-runctr"
)

Functions

func Check

func Check() error

func ExecContainer

func ExecContainer(namespace, pod, container, shell string) error

func FullExecContainer

func FullExecContainer(args ...string) error

func GetShells

func GetShells(namespace, pod, container string) ([]string, error)

func RunContainer

func RunContainer(image string, args ...string) error

Types

type Container

type Container struct {
	Name  string
	Image string
}

type Node

type Node struct {
	Name   string
	Labels map[string]string
}

func GetNodes

func GetNodes(args ...string) ([]Node, error)

type Pod

type Pod struct {
	Name       string
	Namespace  string
	Status     string
	Containers []Container
}

func GetPods

func GetPods(args ...string) ([]Pod, error)

Jump to

Keyboard shortcuts

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