{"modulePath":"github.com/Azure/aks-engine","version":"v0.79.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package transform\n\nPackage transform provides helper methods to introspect and modify existing ARM templates.\n\n## Functions\n\n```go\nfunc BuildAzureParametersFile(content string) (string, error)\n```\nBuildAzureParametersFile will add the correct schema and contentversion information\n\n```go\nfunc MapValues(m map[string]APIModelValue, setFlagValues []string)\n```\nMapValues converts an arraw of rwa ApiModel values (like \\[\"masterProfile.count=4\",\"linuxProfile.adminUsername=admin\"]) to a map\n\n```go\nfunc MergeValuesWithAPIModel(apiModelPath string, m map[string]APIModelValue) (string, error)\n```\nMergeValuesWithAPIModel takes the path to an ApiModel JSON file, loads it and merges it with the values in the map to another temp file\n\n```go\nfunc PrettyPrintArmTemplate(template string) (string, error)\n```\nPrettyPrintArmTemplate will pretty print the arm template ensuring ordered by params, vars, resources, and outputs\n\n```go\nfunc PrettyPrintJSON(content string) (string, error)\n```\nPrettyPrintJSON will pretty print the json into\n\n```go\nfunc RemoveNsgDependency(logger *logrus.Entry, resourceName string, resourceMap map[string]interface{})\n```\nRemoveNsgDependency Removes the nsg dependency from the resource\n\n## Types\n\n```go\ntype APIModelValue struct {\n\t// contains filtered or unexported fields\n}\n```\nAPIModelValue represents a value in the APIModel JSON file\n\n```go\ntype Transformer struct {\n\tTranslator Translator\n}\n```\nTransformer represents the object that transforms template\n\n```go\nfunc (t *Transformer) NormalizeForK8sAddVMASPool(l *logrus.Entry, templateMap map[string]interface{}) error\n```\nNormalizeForK8sAddVMASPool takes a template and removes elements that are unwanted in a K8s VMAS add pool case\n\n```go\nfunc (t *Transformer) NormalizeForK8sSLBScalingOrUpgrade(logger *logrus.Entry, templateMap map[string]interface{}) error\n```\nNormalizeForK8sSLBScalingOrUpgrade takes a template and removes elements that are unwanted in a K8s Standard LB cluster scale up/down case\n\n```go\nfunc (t *Transformer) NormalizeForK8sVMASScalingUp(logger *logrus.Entry, templateMap map[string]interface{}) error\n```\nNormalizeForK8sVMASScalingUp takes a template and removes elements that are unwanted in a K8s VMAS scale up/down case\n\n```go\nfunc (t *Transformer) NormalizeMasterResourcesForVMSSPoolUpgrade(logger *logrus.Entry, templateMap map[string]interface{}) error\n```\nNormalizeMasterResourcesForVMSSPoolUpgrade removes superfluous template resources for upgrading VMSS nodes\n\n```go\nfunc (t *Transformer) NormalizeResourcesForK8sAgentUpgrade(logger *logrus.Entry, templateMap map[string]interface{}, isMasterManagedDisk bool, agentPoolsToPreserve map[string]bool) error\n```\nNormalizeResourcesForK8sAgentUpgrade takes a template and removes elements that are unwanted in any scale/upgrade case\n\n```go\nfunc (t *Transformer) NormalizeResourcesForK8sMasterUpgrade(logger *logrus.Entry, templateMap map[string]interface{}, isMasterManagedDisk bool, agentPoolsToPreserve map[string]bool) error\n```\nNormalizeResourcesForK8sMasterUpgrade takes a template and removes elements that are unwanted in any scale up/down case\n\n```go\nfunc (t *Transformer) RemoveImmutableResourceProperties(logger *logrus.Entry, templateMap map[string]interface{})\n```\n\n```go\nfunc (t *Transformer) RemoveJumpboxResourcesFromTemplate(logger *logrus.Entry, templateMap map[string]interface{}) error\n```\n\n```go\nfunc (t *Transformer) RemoveKMSResourcesFromTemplate(logger *logrus.Entry, templateMap map[string]interface{}) error\n```\n\n```go\nfunc (t *Transformer) RemoveResourcesAndOutputsForScaling(logger *logrus.Entry, templateMap map[string]interface{}) error\n```\nRemoveResourcesAndOutputsForScaling takes a template and removes elements that are unwanted in any scale up/down case\n\n```go\ntype Translator interface {\n\t// T translates a text string, based on GNU's gettext library.\n\tT(msgid string, vars ...interface{}) string\n\t// NT translates a text string into the appropriate plural form, based on GNU's gettext library.\n\tNT(msgid, msgidPlural string, n int, vars ...interface{}) string\n\t// Errorf produces an error with a translated error string.\n\tErrorf(msgid string, vars ...interface{}) error\n\t// NErrorf produces an error with a translated error string in the appropriate plural form.\n\tNErrorf(msgid, msgidPlural string, n int, vars ...interface{}) error\n}\n```\nTranslator defines all required interfaces for i18n.Translator.\n\n","path":"github.com/Azure/aks-engine/pkg/engine/transform","name":"transform","synopsis":"Package transform provides helper methods to introspect and modify existing ARM templates.","isRedistributable":true}
