namespace

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Namespace contains the API handlers to manage namespaces.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
}

Controller represents all functionality of the API related to namespaces

func (Controller) Create

func (oc Controller) Create(c *gin.Context) apierror.APIErrors

Create handles the API endpoint /namespaces (POST). It creates a namespace with the specified name.

func (Controller) Delete

func (oc Controller) Delete(c *gin.Context) apierror.APIErrors

Delete handles the API endpoint /namespaces/:namespace (DELETE). It destroys the namespace specified by its name. This includes all the applications and configurations in it.

func (Controller) Index

func (oc Controller) Index(c *gin.Context) apierror.APIErrors

Index handles the API endpoint /namespaces (GET) It returns a list of all Epinio-controlled namespaces An Epinio namespace is nothing but a kubernetes namespace which has a special Label (Look at the code to see which).

func (Controller) Match

func (oc Controller) Match(c *gin.Context) apierror.APIErrors

Match handles the API endpoint /namespacematches/:pattern (GET) It returns a list of all Epinio-controlled namespaces matching the prefix pattern.

func (Controller) Show added in v0.1.4

func (hc Controller) Show(c *gin.Context) apierror.APIErrors

Show handles the API endpoint GET /namespaces/:namespace It returns the details of the specified namespace

Jump to

Keyboard shortcuts

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