Documentation
¶
Index ¶
- func DeleteFromObject(fieldPath []string, paramsData, key, root string) (string, error)
- func EvaluateComponentSnippet(a app.App, snippet, paramsStr, envName string, useMemoryImporter bool) (string, error)
- func EvaluateEnv(a app.App, sourcePath, paramsStr, envName string) (string, error)
- func PatchJSON(jsonObject, patch, patchName string) (string, error)
- func SetInObject(fieldPath []string, paramsData, key string, value interface{}, root string) (string, error)
- func ToMap(componentName, src, root string) (map[string]interface{}, error)
- type EnvComponentRemover
- type EnvGlobalsSet
- type EnvGlobalsUnset
- type EnvParamSet
- type EnvParamUnset
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteFromObject ¶
func DeleteFromObject(fieldPath []string, paramsData, key, root string) (string, error)
DeleteFromObject deletes a value from an object. `root` will generally be either `components` or `global`. `key` is the component name.
func EvaluateComponentSnippet ¶
func EvaluateComponentSnippet(a app.App, snippet, paramsStr, envName string, useMemoryImporter bool) (string, error)
EvaluateComponentSnippet evaluates a component with jsonnet using a snippet.
func EvaluateEnv ¶
func EvaluateEnv(a app.App, sourcePath, paramsStr, envName string) (string, error)
EvaluateEnv evaluates an env with jsonnet.
func PatchJSON ¶
func PatchJSON(jsonObject, patch, patchName string) (string, error)
PatchJSON patches components.
func SetInObject ¶
func SetInObject(fieldPath []string, paramsData, key string, value interface{}, root string) (string, error)
SetInObject sets a value in an object. `root` will generally be either `components` or `global`. `key` is the component name.
Types ¶
type EnvComponentRemover ¶
type EnvComponentRemover struct {
}
EnvComponentRemover removes param configuration for components from env params libsonnet files.
func NewEnvComponentRemover ¶
func NewEnvComponentRemover() *EnvComponentRemover
NewEnvComponentRemover creates an instance of EnvComponentRemover.
type EnvGlobalsSet ¶
type EnvGlobalsSet struct {
}
EnvGlobalsSet sets environment globals.
func NewEnvGlobalsSet ¶
func NewEnvGlobalsSet() *EnvGlobalsSet
NewEnvGlobalsSet creates an instance of EnvGlobalsSet.
type EnvGlobalsUnset ¶
type EnvGlobalsUnset struct {
}
EnvGlobalsUnset un-sets global environment params.
func NewEnvGlobalsUnset ¶
func NewEnvGlobalsUnset() *EnvGlobalsUnset
NewEnvGlobalsUnset creates an instance of EnvGlobalsUnset.
type EnvParamSet ¶
type EnvParamSet struct {
}
EnvParamSet sets environment params for a component.
func NewEnvParamSet ¶
func NewEnvParamSet() *EnvParamSet
NewEnvParamSet creates an instance of EnvParamSet.
type EnvParamUnset ¶
type EnvParamUnset struct {
}
EnvParamUnset unset param configuration for components from env params libsonnet files.
func NewEnvParamUnset ¶
func NewEnvParamUnset() *EnvParamUnset
NewEnvParamUnset creates an instance of EnvParamUnset.