transform

package
v0.20210921.0 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MapValues

func MapValues(m map[string]APIModelValue, setFlagValues []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

Types

type APIModelValue

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

APIModelValue represents a value in the APIModel JSON file

Jump to

Keyboard shortcuts

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