Documentation ¶
Overview ¶
Namespace contains the API handlers to manage namespaces.
Index ¶
- type Controller
- func (oc Controller) Create(c *gin.Context) apierror.APIErrors
- func (oc Controller) Delete(c *gin.Context) apierror.APIErrors
- func (oc Controller) Index(c *gin.Context) apierror.APIErrors
- func (oc Controller) Match(c *gin.Context) apierror.APIErrors
- func (hc Controller) Show(c *gin.Context) apierror.APIErrors
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).
Click to show internal directories.
Click to hide internal directories.