Documentation ¶
Index ¶
- func BuildAzureParametersFile(content string) (string, error)
- func MapValues(m map[string]APIModelValue, values []string)
- func MergeValuesWithAPIModel(apiModelPath string, m map[string]APIModelValue) (string, error)
- func PrettyPrintArmTemplate(template string) (string, error)
- func PrettyPrintJSON(content string) (string, error)
- type APIModelValue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildAzureParametersFile ¶
BuildAzureParametersFile will add the correct schema and contentversion information
func MapValues ¶
func MapValues(m map[string]APIModelValue, values []string)
MapValues converts an arraw of rwa ApiModel values (like ["masterProfile.count=4","linuxProfile.adminUsername=admin"]) to a map
func MergeValuesWithAPIModel ¶
func MergeValuesWithAPIModel(apiModelPath string, m map[string]APIModelValue) (string, error)
MergeValuesWithAPIModel takes the path to an ApiModel JSON file, loads it and merges it with the values in the map to another temp file
func PrettyPrintArmTemplate ¶
PrettyPrintArmTemplate will pretty print the arm template ensuring ordered by params, vars, resources, and outputs
func PrettyPrintJSON ¶
PrettyPrintJSON will pretty print the json into
Types ¶
type APIModelValue ¶
type APIModelValue struct {
// contains filtered or unexported fields
}
APIModelValue represents a value in the APIModel JSON file
Click to show internal directories.
Click to hide internal directories.