deployment

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2018 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KubeDeploymentController

type KubeDeploymentController struct {
	base.APIController
}

func (*KubeDeploymentController) Deploy

func (c *KubeDeploymentController) Deploy()

@Title deploy @Description deploy tpl @Param body body string true "The tpl content" @Success 200 return ok success @router /:deploymentId([0-9]+)/tpls/:tplId([0-9]+)/clusters/:cluster [post]

func (*KubeDeploymentController) Get

func (c *KubeDeploymentController) Get()

@Title Get @Description find Deployment by cluster @Param cluster path string true "the cluster name" @Param namespace path string true "the namespace name" @Success 200 {object} models.Deployment success @router /:deployment/namespaces/:namespace/clusters/:cluster [get]

func (*KubeDeploymentController) GetDetail added in v1.1.0

func (c *KubeDeploymentController) GetDetail()

@Title Get @Description find Deployment by cluster @Param cluster path string true "the cluster name" @Param namespace path string true "the namespace name" @Success 200 {object} models.Deployment success @router /:deployment/detail/namespaces/:namespace/clusters/:cluster [get]

func (*KubeDeploymentController) List added in v1.1.0

func (c *KubeDeploymentController) List()

@Title List deployment @Description get all deployment @Param pageNo query int false "the page current no" @Param pageSize query int false "the page size" @Param filter query string false "column filter, ex. filter=name=test" @Param sortby query string false "column sorted by, ex. sortby=-id, '-' representation desc, and sortby=id representation asc" @Param cluster path string true "the cluster name" @Param namespace path string true "the namespace name" @Success 200 {object} common.Page success @router /namespaces/:namespace/clusters/:cluster [get]

func (*KubeDeploymentController) Offline

func (c *KubeDeploymentController) Offline()

@Title Delete @Description delete the Deployment @Param cluster path string true "the cluster want to delete" @Param namespace path string true "the namespace want to delete" @Param deployment path string true "the deployment name want to delete" @Success 200 {string} delete success! @router /:deployment/namespaces/:namespace/clusters/:cluster [delete]

func (*KubeDeploymentController) Prepare

func (c *KubeDeploymentController) Prepare()

func (*KubeDeploymentController) URLMapping

func (c *KubeDeploymentController) URLMapping()

func (*KubeDeploymentController) Update added in v1.2.0

func (c *KubeDeploymentController) Update()

@Title Update @Description update the Deployment @Param id path int true "The id you want to update" @Param body body models.App true "The body" @Success 200 models.Namespace success @router /:deployment/namespaces/:namespace/clusters/:cluster [put]

Jump to

Keyboard shortcuts

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