Documentation ¶
Overview ¶
Env contains the API handlers to manage the application environment
Index ¶
- type Controller
- func (hc Controller) Index(c *gin.Context) apierror.APIErrors
- func (hc Controller) Match(c *gin.Context) apierror.APIErrors
- func (hc Controller) Set(c *gin.Context) apierror.APIErrors
- func (hc Controller) Show(c *gin.Context) apierror.APIErrors
- func (hc Controller) Unset(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 envs
func (Controller) Index ¶
func (hc Controller) Index(c *gin.Context) apierror.APIErrors
Index handles the API endpoint /namespaces/:namespace/applications/:app/environment It receives the namespace, application name and returns the environment associated with that application
func (Controller) Match ¶
func (hc Controller) Match(c *gin.Context) apierror.APIErrors
Match handles the API endpoint /namespaces/:namespace/applications/:app/environment/:env/match/:pattern It receives the namespace, application name, plus a prefix and returns the names of all the environment associated with that application with prefix
func (Controller) Set ¶
func (hc Controller) Set(c *gin.Context) apierror.APIErrors
Set handles the API endpoint /namespaces/:namespace/applications/:app/environment (POST) It receives the namespace, application name, var name and value, and add/modifies the variable in the application's environment.
func (Controller) Show ¶
func (hc Controller) Show(c *gin.Context) apierror.APIErrors
EnvShow handles the API endpoint /namespaces/:namespace/applications/:app/environment/:env It receives the namespace, application name, var name, and returns the variable's value in the application's environment.
func (Controller) Unset ¶
func (hc Controller) Unset(c *gin.Context) apierror.APIErrors
Unset handles the API endpoint /namespaces/:namespace/applications/:app/environment/:env (DELETE) It receives the namespace, application name, var name, and removes the variable from the application's environment.