cluster

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterController

type ClusterController struct {
	base.APIController
}

集群相关操作

func (*ClusterController) Create

func (c *ClusterController) Create()

@Title Create @Description create Cluster @Param body body models.Cluster true "The app content" @Success 200 return id success @Failure 403 body is empty @router / [post]

func (*ClusterController) Delete

func (c *ClusterController) Delete()

@Title Delete @Description delete the app @Param name path string true "The name you want to delete" @Param logical query bool false "is logical deletion,default true" @Success 200 {string} delete success! @Failure 403 name is empty @router /:name [delete]

func (*ClusterController) Get

func (c *ClusterController) Get()

@Title Get @Description find Object by objectid @Param name path string true "the name you want to get" @Success 200 {object} models.Cluster success @Failure 403 :name is empty @router /:name [get]

func (*ClusterController) GetNames

func (c *ClusterController) GetNames()

@Title List/ @Description get all id and names @Param deleted query bool false "is deleted,default false." @Success 200 {object} []models.Cluster success @router /names [get]

func (*ClusterController) List

func (c *ClusterController) List()

@Title List @Description get all objects @Param pageNo query int false "the page current no" @Param pageSize query int false "the page size" @Success 200 {object} []models.Cluster success @router / [get]

func (*ClusterController) Prepare

func (c *ClusterController) Prepare()

func (*ClusterController) URLMapping

func (c *ClusterController) URLMapping()

func (*ClusterController) Update

func (c *ClusterController) Update()

@Title Update @Description update the object @Param name path string true "The name you want to update" @Param body body models.Cluster true "The body" @Success 200 id success @Failure 403 :name is empty @router /:name [put]

Jump to

Keyboard shortcuts

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