Documentation
¶
Index ¶
Constants ¶
View Source
const ( GetAllDeployMent = iota GetSpecDeployMent GetAllPods )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type K8sMetaData ¶
type K8sMetaData struct { Endpoint string `json:"endpoint"` Namespace string `json:"namespace"` Svcname string `json:"svcname"` Version string `json:"version"` Token string `json:"token"` }
func (*K8sMetaData) GetDeployMent ¶
func (k *K8sMetaData) GetDeployMent() (*k8smodel.K8s, error)
func (*K8sMetaData) GetDeployMentStatus ¶
func (k *K8sMetaData) GetDeployMentStatus() (*k8smodel.K8sDeployment, error)
GetDeployMentStatus 获取指定Deployment的运行状态 DeployMent 对应的是容器云的Service
func (*K8sMetaData) GetPodsInNamespace ¶
func (k *K8sMetaData) GetPodsInNamespace() (*k8smodel.K8sPods, error)
GetPodsInNamespace 获取指定命名空间中的Pods信息 Pods对应的是容器云中的实例信息
Click to show internal directories.
Click to hide internal directories.