namespace

package
v1.8.4 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 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 NamespaceController

type NamespaceController struct {
	base.APIController
}

func (*NamespaceController) Create

func (c *NamespaceController) Create()

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

func (*NamespaceController) Delete

func (c *NamespaceController) Delete()

@Title Delete @Description delete the Namespace @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 (*NamespaceController) Get

func (c *NamespaceController) Get()

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

func (*NamespaceController) GetNames

func (c *NamespaceController) GetNames()

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

func (*NamespaceController) History

func (c *NamespaceController) History()

@Title Get Publish History @Description get publish history by namespace @Param id path int true "The id you want to get publish history" @router /:id/history [get]

func (*NamespaceController) InitDefault

func (c *NamespaceController) InitDefault()

@Title Get @Description init default namespace @router /init

func (*NamespaceController) List

func (c *NamespaceController) List()

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

func (*NamespaceController) Migrate added in v1.8.4

func (c *NamespaceController) Migrate()

@Title Migrate @Description migrate the namespace from a to b @Param body body models.NamespaceMigration true "The namespace migration content" @router /migration [post]

func (*NamespaceController) Prepare

func (c *NamespaceController) Prepare()

func (*NamespaceController) Statistics

func (c *NamespaceController) Statistics()

@Title Resource Count @Description The app resource count statistics @Success 200 {object} models.AppCount success @router /:id([0-9]+)/statistics [get]

func (*NamespaceController) URLMapping

func (c *NamespaceController) URLMapping()

func (*NamespaceController) Update

func (c *NamespaceController) Update()

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

Jump to

Keyboard shortcuts

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