Documentation ¶
Overview ¶
Configuration contains the API handlers to manage configurations. Except for configuration/app bindings.
Index ¶
- type Controller
- func (hc Controller) ConfigurationApps(c *gin.Context) apierror.APIErrors
- func (sc Controller) Create(c *gin.Context) apierror.APIErrors
- func (sc Controller) Delete(c *gin.Context) apierror.APIErrors
- func (hc Controller) FullIndex(c *gin.Context) apierror.APIErrors
- func (sc Controller) Index(c *gin.Context) apierror.APIErrors
- func (oc Controller) Match(c *gin.Context) apierror.APIErrors
- func (sc Controller) Replace(c *gin.Context) apierror.APIErrors
- func (sc Controller) Show(c *gin.Context) apierror.APIErrors
- func (sc Controller) Update(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 configurations
func (Controller) ConfigurationApps ¶
func (hc Controller) ConfigurationApps(c *gin.Context) apierror.APIErrors
ConfigurationApps handles the API endpoint GET /namespaces/:namespace/configurationapps It returns a map from configurations to the apps they are bound to, in the specified namespace.
func (Controller) Create ¶
func (sc Controller) Create(c *gin.Context) apierror.APIErrors
Create handles the API end point /namespaces/:namespace/configurations It creates the named configuration from its parameters
func (Controller) Delete ¶
func (sc Controller) Delete(c *gin.Context) apierror.APIErrors
Delete handles the API end point /namespaces/:namespace/configurations/:configuration (DELETE) It deletes the named configuration
func (Controller) FullIndex ¶
func (hc Controller) FullIndex(c *gin.Context) apierror.APIErrors
FullIndex handles the API endpoint GET /configurations It lists all the known applications in all namespaces, with and without workload.
func (Controller) Index ¶
func (sc Controller) Index(c *gin.Context) apierror.APIErrors
Index handles the API end point /namespaces/:namespace/configurations It returns a list of all known configuration instances
func (Controller) Match ¶ added in v0.9.0
func (oc Controller) Match(c *gin.Context) apierror.APIErrors
Match handles the API endpoint /namespace/:namespace/configurationsmatches/:pattern (GET) It returns a list of all Epinio-controlled configurations matching the prefix pattern.
func (Controller) Replace ¶
func (sc Controller) Replace(c *gin.Context) apierror.APIErrors
Replace handles the API endpoint PUT /namespaces/:namespace/configurations/:app It replaces the specified configuration.