Documentation ¶
Index ¶
- func CreateOrUpdateDeployment(cli *kubernetes.Clientset, deployment *v1beta1.Deployment) (*v1beta1.Deployment, error)
- func DeleteDeployment(cli *kubernetes.Clientset, name, namespace string) error
- func GetDeployment(cli *kubernetes.Clientset, name, namespace string) (*v1beta1.Deployment, error)
- func GetDeploymentList(indexer *client.CacheFactory, namespace string) ([]*v1beta1.Deployment, error)
- func GetDeploymentPage(indexer *client.CacheFactory, namespace string, q *common.QueryParam) (*common.Page, error)
- func GetDeploymentResource(cli client.ResourceHandler, deployment *v1beta1.Deployment) (*common.ResourceList, error)
- func UpdateDeployment(cli *kubernetes.Clientset, deployment *v1beta1.Deployment) (*v1beta1.Deployment, error)
- type Deployment
- type DeploymentCell
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateOrUpdateDeployment ¶
func CreateOrUpdateDeployment(cli *kubernetes.Clientset, deployment *v1beta1.Deployment) (*v1beta1.Deployment, error)
func DeleteDeployment ¶
func DeleteDeployment(cli *kubernetes.Clientset, name, namespace string) error
func GetDeployment ¶
func GetDeployment(cli *kubernetes.Clientset, name, namespace string) (*v1beta1.Deployment, error)
func GetDeploymentList ¶ added in v1.1.0
func GetDeploymentList(indexer *client.CacheFactory, namespace string) ([]*v1beta1.Deployment, error)
func GetDeploymentPage ¶ added in v1.1.0
func GetDeploymentPage(indexer *client.CacheFactory, namespace string, q *common.QueryParam) (*common.Page, error)
func GetDeploymentResource ¶
func GetDeploymentResource(cli client.ResourceHandler, deployment *v1beta1.Deployment) (*common.ResourceList, error)
GetDeploymentResource get deployment resource statistics
func UpdateDeployment ¶
func UpdateDeployment(cli *kubernetes.Clientset, deployment *v1beta1.Deployment) (*v1beta1.Deployment, error)
Types ¶
type Deployment ¶
type Deployment struct { ObjectMeta common.ObjectMeta `json:"objectMeta"` Pods common.PodInfo `json:"pods"` Containers []string `json:"containers"` }
func GetDeploymentDetail ¶
func GetDeploymentDetail(cli *kubernetes.Clientset, indexer *client.CacheFactory, name, namespace string) (*Deployment, error)
type DeploymentCell ¶ added in v1.1.0
type DeploymentCell Deployment
func (DeploymentCell) GetProperty ¶ added in v1.1.0
func (cell DeploymentCell) GetProperty(name dataselector.PropertyName) dataselector.ComparableValue
Click to show internal directories.
Click to hide internal directories.