Documentation ¶
Index ¶
- Variables
- func DeleteDeployment(ns string, name string) error
- func DeletePod(ns string, name string) error
- func LoadClient(kubeconfigPath *string) (*k8s.Client, error)
- type ComponentStatus
- type ComponentStatusList
- type Configmap
- type ConfigmapList
- type Deployment
- type DeploymentList
- type Ingress
- type IngressList
- type Node
- type NodeList
- type PV
- type PVC
- type PVClist
- type PVlist
- type Pod
- type PodList
- type Secret
- type SecretList
- type Service
- type ServiceList
Constants ¶
This section is empty.
Variables ¶
View Source
var ( //Kubeconfig - Kubernetes configuration file path Kubeconfig = flag.String("kubeconfig", "/root/.kube/config", "KubeConfig Path") )
Functions ¶
func DeleteDeployment ¶
DeleteDeployment - describe a deployment
Types ¶
type ComponentStatus ¶
ComponentStatus - kubectl get cs
type ComponentStatusList ¶
type ComponentStatusList []ComponentStatus
ComponentStatusList - List of cs
func ListComponentStatus ¶
func ListComponentStatus() ComponentStatusList
ListComponentStatus - Return a cs list
type Deployment ¶
type Deployment struct { Status string Name string Namespace string PodWanted int32 PodRunning int32 Image string }
Deployment - kubectl get deployments
func GetDeployment ¶
func GetDeployment(ns string, name string) Deployment
GetDeployment - describe a deployment
type DeploymentList ¶
type DeploymentList []Deployment
DeploymentList - list of deployments
func ListDeployments ¶
func ListDeployments() DeploymentList
ListDeployments - return a list of deploys
type IngressList ¶
type IngressList []Ingress
IngressList - list of ingress
func ListIngresses ¶
func ListIngresses() (IngressList, error)
ListIngresses - return a list of ingress
type ServiceList ¶
type ServiceList []Service
ServiceList - list of service
func ListServices ¶
func ListServices() (ServiceList, error)
ListServices - return a list of service
Click to show internal directories.
Click to hide internal directories.