client_go

package
v0.0.0-...-ae1ecbe Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ClientSetConn *kubernetes.Clientset

Functions

func Deploy

func Deploy(name string, DeploymentName string, replica int32, image string) error

func ExistByDeployment

func ExistByDeployment(NameSpace string, DeploymentName string) (bool, error)

func ExistByNameSpace

func ExistByNameSpace(NameSpace string) (bool, error)

func GetDeployment

func GetDeployment(NameSpace string, DeploymentName string) (*appv1.Deployment, error)

func GetDeploymentsAll

func GetDeploymentsAll(NameSpace string) (data []string, err error)
func GetDeploymentsAll(NameSpace string) (*appv1.DeploymentList, error) {
	deployments, err := ClientSetConn.AppsV1().Deployments(NameSpace).List(metav1.ListOptions{})
	if err != nil {
		panic(err)
	}

	return deployments, err
}

func GetDeploymentsAllCount

func GetDeploymentsAllCount(NameSpace string) (data int, err error)

func GetNameSpace

func GetNameSpace(NameSpace string) (*apiv1.Namespace, error)

func GetNameSpaces

func GetNameSpaces() (data []string, err error)

func GetNameSpacesCount

func GetNameSpacesCount() (data int32, err error)

func SetDeployment

func SetDeployment(NameSpace string, DeploymentName string, Replicas int32, Image string) error

func Setup

func Setup(env string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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