Documentation
¶
Index ¶
- Constants
- func CrateNameSpace(namespeceName string, clientset *kubernetes.Clientset) error
- func CreatePodWithNamespace(namespace, name string, clientset *kubernetes.Clientset) error
- func DeleteDeploymentWithNamespce(ns, name string, clientset *kubernetes.Clientset) error
- func DeletePodWithNamespce(namespace, name string, clientset *kubernetes.Clientset) error
- func ListDeploymentWithNamespace(ns string, clientset *kubernetes.Clientset) (*v1.DeploymentList, error)
- func ListPodWithNamespace(namspace string, clientset *kubernetes.Clientset) (*v1.PodList, error)
- type Client
Constants ¶
View Source
const (
ENVNAME = "TEST_ENV_NAME"
)
Variables ¶
This section is empty.
Functions ¶
func CrateNameSpace ¶
func CrateNameSpace(namespeceName string, clientset *kubernetes.Clientset) error
Create a new namespace with the given name
func CreatePodWithNamespace ¶
func CreatePodWithNamespace(namespace, name string, clientset *kubernetes.Clientset) error
Create pod resource with the given namespace and name
func DeleteDeploymentWithNamespce ¶
func DeleteDeploymentWithNamespce(ns, name string, clientset *kubernetes.Clientset) error
Delete deployment resource with the given namespace
func DeletePodWithNamespce ¶
func DeletePodWithNamespce(namespace, name string, clientset *kubernetes.Clientset) error
Delete pod resource with the given namespace and name
func ListDeploymentWithNamespace ¶
func ListDeploymentWithNamespace(ns string, clientset *kubernetes.Clientset) (*v1.DeploymentList, error)
List deployment resource with the given namespace
func ListPodWithNamespace ¶
List pod resource with the given namespace
Types ¶
Click to show internal directories.
Click to hide internal directories.