proxy

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: 8 Imported by: 0

Documentation

Index

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 force query bool false "force to delete the resource from etcd." @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]

Jump to

Keyboard shortcuts

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