Documentation ¶
Index ¶
- func AppendComponent(component, snippet string, params Params) (string, error)
- func DeleteComponent(component, snippet string) (string, error)
- func DeleteEnvironmentParam(componentName, paramName, snippet string) (string, error)
- func GetAllComponentParams(snippet string) (map[string]Params, error)
- func GetAllEnvironmentParams(snippet string) (map[string]Params, error)
- func SetComponentParams(component, snippet string, params Params) (string, error)
- func SetEnvironmentParams(component, snippet string, params Params) (string, error)
- type Params
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendComponent ¶
AppendComponent takes the following params
component: the name of the new component to be added. snippet: a jsonnet snippet resembling the current component parameters. params: the parameters for the new component.
and returns the jsonnet snippet with the appended component and parameters.
func DeleteComponent ¶ added in v0.9.0
DeleteComponent takes
component: the name of the component to be deleted. snippet: a jsonnet snippet resembling the current component parameters.
and returns the jsonnet snippet with the removed component.
func DeleteEnvironmentParam ¶ added in v0.10.0
DeleteEnvironmentParam deletes a parameter for an environment param file. It returns the updated snippet.
func GetAllComponentParams ¶
GetAllComponentParams takes
snippet: the jsonnet snippet containing the component params.
and returns a map of key-value param pairs for each component identified.
func GetAllEnvironmentParams ¶
GetAllEnvironmentParams takes
snippet: the jsonnet snippet containing the environment params. This is expected to be non-expanded schema; i.e. does not include the component params
and returns a map of key-value param pairs for each component identified.
func SetComponentParams ¶
SetComponentParams takes
component: the name of the new component to be modified. snippet: a jsonnet snippet resembling the current component parameters. params: the parameters to be set for 'component'.
and returns the jsonnet snippet with the modified set of component parameters.
func SetEnvironmentParams ¶
SetEnvironmentParams takes
component: the name of the new component to be modified. snippet: a jsonnet snippet resembling the current environment parameters (not expanded). params: the parameters to be set for 'component'.
and returns the jsonnet snippet with the modified set of environment parameters.
Types ¶
type Params ¶
func GetComponentParams ¶
GetComponentParams takes
component: the name of the component to retrieve params for. snippet: the jsonnet snippet containing the component parameters.
and returns a map of key-value param pairs corresponding to that component.
An error will be returned if the component is not found in the snippet.