client

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ENVNAME = "TEST_ENV_NAME"
)

Variables

This section is empty.

Functions

func CrateNameSpace

func CrateNameSpace(namespeceName string, clientset *kubernetes.Clientset) error

func CreatePodWithNamespace

func CreatePodWithNamespace(namespace, name string, clientset *kubernetes.Clientset) error

func DeleteDeploymentWithNamespce

func DeleteDeploymentWithNamespce(ns, name string, clientset *kubernetes.Clientset) error

func DeletePodWithNamespce

func DeletePodWithNamespce(namespace, name string, clientset *kubernetes.Clientset) error

func ListDeploymentWithNamespace

func ListDeploymentWithNamespace(ns string, clientset *kubernetes.Clientset) (*v1.DeploymentList, error)

func ListPodWithNamespace

func ListPodWithNamespace(namspace string, clientset *kubernetes.Clientset) (*v1.PodList, error)

Types

type Client

type Client struct {
	C *kubernetes.Clientset
}

func NewClient

func NewClient() *Client

func (*Client) CheckDeploymentEnv

func (c *Client) CheckDeploymentEnv(ns string)

Jump to

Keyboard shortcuts

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