secret

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SecretController

type SecretController struct {
	base.APIController
}

func (*SecretController) Create

func (c *SecretController) Create()

@Title Create @Description create Secret @Param body body models.Secret true "The Secret content" @Success 200 return models.Secret success @router / [post]

func (*SecretController) Delete

func (c *SecretController) Delete()

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

func (*SecretController) Get

func (c *SecretController) Get()

@Title Get @Description find Object by id @Param id path int true "the id you want to get" @Success 200 {object} models.Secret success @router /:id([0-9]+) [get]

func (*SecretController) GetNames

func (c *SecretController) GetNames()

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

func (*SecretController) List

func (c *SecretController) List()

@Title GetAll @Description get all Secret @Param pageNo query int false "the page current no" @Param pageSize query int false "the page size" @Param name query string false "name filter" @Param deleted query bool false "is deleted, default list all" @Success 200 {object} []models.Secret success @router / [get]

func (*SecretController) Prepare

func (c *SecretController) Prepare()

func (*SecretController) URLMapping

func (c *SecretController) URLMapping()

func (*SecretController) Update

func (c *SecretController) Update()

@Title Update @Description update the Secret @Param id path int true "The id you want to update" @Param body body models.Secret true "The body" @Success 200 models.Secret success @router /:id [put]

func (*SecretController) UpdateOrders

func (c *SecretController) UpdateOrders()

@Title UpdateOrders @Description batch update the Orders @Param body body []models.Secret true "The body" @Success 200 models.Deployment success @router /updateorders [put]

type SecretTplController

type SecretTplController struct {
	base.APIController
}

func (*SecretTplController) Create

func (c *SecretTplController) Create()

@Title Create @Description create SecretTemplate @Param body body models.SecretTemplate true "The SecretTemplate content" @Success 200 return models.SecretTemplate success @router / [post]

func (*SecretTplController) Delete

func (c *SecretTplController) Delete()

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

func (*SecretTplController) Get

func (c *SecretTplController) Get()

@Title Get @Description find Object by id @Param id path int true "the id you want to get" @Success 200 {object} models.SecretTemplate success @router /:id([0-9]+) [get]

func (*SecretTplController) List

func (c *SecretTplController) List()

@Title GetAll @Description get all SecretTemplate @Param pageNo query int false "the page current no" @Param pageSize query int false "the page size" @Param name query string false "name filter" @Param deleted query bool false "is deleted" @Success 200 {object} []models.SecretTemplate success @router / [get]

func (*SecretTplController) Prepare

func (c *SecretTplController) Prepare()

func (*SecretTplController) URLMapping

func (c *SecretTplController) URLMapping()

func (*SecretTplController) Update

func (c *SecretTplController) Update()

@Title Update @Description update the SecretTemplate @Param id path int true "The id you want to update" @Param body body models.SecretTemplate true "The body" @Success 200 models.SecretTemplate success @router /:id [put]

Jump to

Keyboard shortcuts

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