Documentation ¶
Index ¶
- func ReconcileParams(baseDir string, params map[string]any) error
- type Handler
- func (h *Handler) Build(w http.ResponseWriter, r *http.Request)
- func (h *Handler) Connections(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetEnvironmentVariables(w http.ResponseWriter, _ *http.Request)
- func (h *Handler) GetSecrets(w http.ResponseWriter, _ *http.Request)
- func (h *Handler) Params(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func (*Handler) Connections ¶
func (h *Handler) Connections(w http.ResponseWriter, r *http.Request)
func (*Handler) GetEnvironmentVariables ¶
func (h *Handler) GetEnvironmentVariables(w http.ResponseWriter, _ *http.Request)
GetEnvironmentVariables returns the parsed env vars from an application bundle
@Summary Get parsed env vars @Description Get parsed env vars @ID get-environment-variables @Produce json @Success 200 {object} map[string]bundle.ParsedEnvironmentVariable @Router /bundle/envs [get]
func (*Handler) GetSecrets ¶
func (h *Handler) GetSecrets(w http.ResponseWriter, _ *http.Request)
GetSecrets returns the secrets from the bundle
@Summary Get bundle secrets @Description Get bundle secrets @ID get-bundle-secrets @Produce json @Success 200 {object} bundle.AppSpec.Secrets @Router /bundle/secrets [get]
func (*Handler) Params ¶
func (h *Handler) Params(w http.ResponseWriter, r *http.Request)
Params writes and fetches current parameters to file on demand
@Summary Write and fetch currently set params to vars file @Description Allows users to set their params before deployment for easy recall @ID params @Produce json @Success 200 {object} map[string]any @Router /bundle/params [post, get, options]
Click to show internal directories.
Click to hide internal directories.