utils

package
v0.0.0-...-7b190fc Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrComponentNotImplemented = eris.New("component is not implemented in the platform")
)

Functions

func MatchAppAndPlatform

func MatchAppAndPlatform(pm *platform.PlatformMetadata, apps app.Apps, ignoreUnimplemented bool) (err error)

MatchAppAndPlatform validate app dependency inputs and set default inputs

Types

type EnvVar

type EnvVar struct {
	Key, Value string
}

EnvVar env variable Object

func (EnvVar) Render

func (e EnvVar) Render(quoteVal bool) string

type EnvVars

type EnvVars []EnvVar

EnvVars array of env variables

func GetAppEnvTemplate

func GetAppEnvTemplate(pm *platform.PlatformMetadata, app app.App) EnvVars

GetAppEnvTemplate based on the app-dependencies, and component metadata, generate a template for env variables such that the variables can be rendered later using the terraform state output object.

func (EnvVars) Len

func (vars EnvVars) Len() int

func (EnvVars) Less

func (vars EnvVars) Less(i, j int) bool

func (EnvVars) Render

func (vars EnvVars) Render() string

func (EnvVars) RenderWithQuotes

func (vars EnvVars) RenderWithQuotes() string

func (EnvVars) Swap

func (vars EnvVars) Swap(i, j int)

Jump to

Keyboard shortcuts

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