Documentation ¶
Index ¶
- type KubeProxyController
- func (c *KubeProxyController) Create()
- func (c *KubeProxyController) Delete()
- func (c *KubeProxyController) Get()
- func (c *KubeProxyController) GetNames()
- func (c *KubeProxyController) List()
- func (c *KubeProxyController) Prepare()
- func (c *KubeProxyController) URLMapping()
- func (c *KubeProxyController) Update()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KubeProxyController ¶
type KubeProxyController struct {
base.APIController
}
func (*KubeProxyController) Create ¶
func (c *KubeProxyController) Create()
@Title Create @Description Create the resource @Param cluster path string true "the cluster name" @Param kind path string true "the resource kind" @Param namespace path string true "the namespace name" @Param name path string true "the resource name" @Param resource body string false "the kubernetes resource" @Success 200 {string} delete success! @router / [post]
func (*KubeProxyController) Delete ¶
func (c *KubeProxyController) Delete()
@Title Delete @Description delete the resource @Param cluster path string true "the cluster want to delete" @Param kind path string true "the resource kind" @Param namespace path string true "the namespace want to delete" @Param name path string true "the name want to delete" @Param deleteOptions body string false "the kubernetes delete options" @Success 200 {string} delete success! @router /:name [delete]
func (*KubeProxyController) Get ¶
func (c *KubeProxyController) Get()
@Title Get @Description Find Object by name @Param cluster path string true "the cluster name" @Param namespace path string true "the namespace name" @Param kind path string true "the resource kind" @Param name path string true "the resource name" @Success 200 {object} success @router /:name [get]
func (*KubeProxyController) GetNames ¶
func (c *KubeProxyController) GetNames()
@Title Get all resource names @Description get all names @Success 200 {object} []response.NamesObject success @router /names [get]
func (*KubeProxyController) List ¶
func (c *KubeProxyController) List()
@Title List @Description List Objects @Param pageNo query int false "the page current no" @Param pageSize query int false "the page size" @Param filter query string false "the labelSelector for list e.g. filter=app=infra-wayne,wayne-app=infra" @Param labelSelector query string false "labelSelector, ex. labelSelector=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" @Param kind path string true "the resource kind" @Success 200 {object} success @router / [get]
func (*KubeProxyController) Prepare ¶
func (c *KubeProxyController) Prepare()
func (*KubeProxyController) URLMapping ¶
func (c *KubeProxyController) URLMapping()
func (*KubeProxyController) Update ¶
func (c *KubeProxyController) Update()
@Title Update @Description Update the resource @Param cluster path string true "the cluster name" @Param kind path string true "the resource kind" @Param namespace path string true "the namespace name" @Param name path string true "the resource name" @Param resource body string false "the kubernetes resource" @Success 200 {string} delete success! @router /:name [put]