Documentation ¶
Index ¶
- Variables
- func Deploy(name string, DeploymentName string, replica int32, image string) error
- func ExistByDeployment(NameSpace string, DeploymentName string) (bool, error)
- func ExistByNameSpace(NameSpace string) (bool, error)
- func GetDeployment(NameSpace string, DeploymentName string) (*appv1.Deployment, error)
- func GetDeploymentsAll(NameSpace string) (data []string, err error)
- func GetDeploymentsAllCount(NameSpace string) (data int, err error)
- func GetNameSpace(NameSpace string) (*apiv1.Namespace, error)
- func GetNameSpaces() (data []string, err error)
- func GetNameSpacesCount() (data int32, err error)
- func SetDeployment(NameSpace string, DeploymentName string, Replicas int32, Image string) error
- func Setup(env string)
Constants ¶
This section is empty.
Variables ¶
View Source
var ClientSetConn *kubernetes.Clientset
Functions ¶
func ExistByDeployment ¶
func ExistByNameSpace ¶
func GetDeployment ¶
func GetDeployment(NameSpace string, DeploymentName string) (*appv1.Deployment, error)
func GetDeploymentsAll ¶
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 GetNameSpaces ¶
func GetNameSpacesCount ¶
func SetDeployment ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.