configuration

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: 15 Imported by: 0

Documentation

Overview

Configuration contains the API handlers to manage configurations. Except for configuration/app bindings.

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

func (Controller) Show

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

Show handles the API end point /namespaces/:namespace/configurations/:configuration It returns the detail information of the named configuration instance

func (Controller) Update

func (sc Controller) Update(c *gin.Context) apierror.APIErrors

Update handles the API endpoint PATCH /namespaces/:namespace/configurations/:app It modifies the keys and values of the specified configuration.

Jump to

Keyboard shortcuts

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