env

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Env contains the API handlers to manage the application environment

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 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

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.

Jump to

Keyboard shortcuts

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