pod

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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeletePod

func DeletePod(client dynamic.Interface, namespace string, name string) error

func GetPod

func GetPod(client dynamic.Interface, namespace, name string) (*unstructured.Unstructured, error)

func ListPod

func ListPod(client dynamic.Interface, namespace string) (*unstructured.UnstructuredList, error)

Types

type Pod

type Pod struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              PodsSpec `json:"spec,omitempty"`
}

func CreatePodWithYaml

func CreatePodWithYaml(client dynamic.Interface, namespace string, yamlData string) (*Pod, error)

type PodsList

type PodsList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`

	Items []map[string]interface{} `json:"items"`
}

type PodsSpec

type PodsSpec struct {
	PodSpec string `json:"podSpec"`
	Image   string `json:"image"`
}

Jump to

Keyboard shortcuts

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