bundle

package
v0.0.0-...-2263012 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReconcileParams

func ReconcileParams(baseDir string, params map[string]any) error

reconcileParams reads the params file keeping the md_metadata field intact as it's not represented in the UI yet, adds the incoming params, and writes the file back out.

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(dir string) (*Handler, error)

func (*Handler) Build

func (h *Handler) Build(w http.ResponseWriter, r *http.Request)

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]

Jump to

Keyboard shortcuts

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