kubectl

package
v0.0.24 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextExists

func ContextExists(name string) bool

func CopyToPod

func CopyToPod(namespace, pod, container, source, destination string) error

func ExecPod

func ExecPod(namespace, pod, container string, cmd []string) *script.Pipe

func Exists

func Exists() bool

func FilterImages

func FilterImages(namespace, deployment string, filter func(s string) string) ([]string, error)

func GetCurrentContext

func GetCurrentContext() (string, error)

func GetDeployment

func GetDeployment(namespace, deployment string) (*apps.Deployment, error)

func GetMostRecentRunningPodBySelectors

func GetMostRecentRunningPodBySelectors(namespace string, selectors map[string]string) (string, error)

func GetPIDsOf

func GetPIDsOf(namespace, pod, container, process string) (pids []string, err error)

func KillPidsOnPod

func KillPidsOnPod(namespace, pod, container string, pids []string, murder bool) []error

func ListContainers

func ListContainers(namespace, deployment string) ([]string, error)

func ListContexts

func ListContexts() ([]string, error)

func ListDeployments

func ListDeployments(namespace string) ([]string, error)

func ListImages

func ListImages(namespace, deployment string) ([]string, error)

func ListNamespaces

func ListNamespaces() ([]string, error)

func ListPods

func ListPods(namespace, deployment string) ([]string, error)

func ListRepositories

func ListRepositories(namespace, deployment string) ([]string, error)

func PortForwardPod

func PortForwardPod(namespace, pod string, port int) error

func SetContext

func SetContext(name string) error

func TempSwitchContext

func TempSwitchContext(context string, cb func() error) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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