client

package
v1.1.1 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

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

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

List pod resource with the given namespace

Types

type Client

type Client struct {
	C *kubernetes.Clientset
}

func NewClient

func NewClient() *Client

Return a new Client

func (*Client) CheckDeploymentEnv

func (c *Client) CheckDeploymentEnv(ns string)

Check for Deployment and start a go routine if new deployment added

Jump to

Keyboard shortcuts

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