Documentation ¶
Index ¶
- func DeletePod(podName string) error
- func GetAllNameByPrefix(prefix string) ([]string, error)
- func GetNameByPrefix(prefix string) (string, error)
- func GetNodeName(podName string) (string, error)
- func RunCommandInPod(execCmd ...string) (string, error)
- func WaitOnDeletion(prefix string) (bool, error)
- type List
- type Metadata
- type Pod
- type Spec
- type Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAllNameByPrefix ¶
GetAllNameByPrefix will return the name of all pods that matches a prefix
func GetNameByPrefix ¶
GetNameByPrefix will return the name of the first pod that matches a prefix
func GetNodeName ¶
GetNodeName will return the name of the node the pod is running on
func RunCommandInPod ¶
RunCommandInPod runs command with kubectl exec in pod
func WaitOnDeletion ¶
WaitOnDeletion will block until there is no pod name that starts with the give prefix
Types ¶
type List ¶
type List struct {
Pods []Pod `json:"items"`
}
List is a container that holds all pods returned from 'kubectl get pods'
type Metadata ¶
type Metadata struct {
Name string `json:"name"`
}
Metadata holds information about a pod
Click to show internal directories.
Click to hide internal directories.