service

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KubeServiceController

type KubeServiceController struct {
	base.APIController
}

func (*KubeServiceController) Deploy

func (c *KubeServiceController) Deploy()

@Title deploy @Description deploy tpl @Param body body string true "The tpl content" @Success 200 return ok success @router /:serviceId/tpls/:tplId/clusters/:cluster [post]

func (*KubeServiceController) Get

func (c *KubeServiceController) Get()

@Title Get @Description find Service by cluster @Success 200 {object} models.Service success @router /:service/namespaces/:namespace/clusters/:cluster [get]

func (*KubeServiceController) GetDetail added in v1.3.0

func (c *KubeServiceController) GetDetail()

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

func (*KubeServiceController) List added in v1.3.0

func (c *KubeServiceController) List()

@Title List service @Description get all ingress in a kubernetes cluster @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 (*KubeServiceController) Offline

func (c *KubeServiceController) Offline()

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

func (*KubeServiceController) Prepare

func (c *KubeServiceController) Prepare()

func (*KubeServiceController) URLMapping

func (c *KubeServiceController) URLMapping()

Jump to

Keyboard shortcuts

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