k8s

package
v0.6.7 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2018 License: GPL-3.0 Imports: 9 Imported by: 1

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对应的是容器云中的实例信息

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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