{"modulePath":"github.com/jetstack/packer","version":"v0.7.2","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package fix\n\n## Variables\n\n```go\nvar FixerOrder []string\n```\nFixerOrder is the default order the fixers should be run.\n\n```go\nvar Fixers map[string]Fixer\n```\nFixers is the map of all available fixers, by name.\n\n## Types\n\n```go\ntype Command byte\n```\n\n```go\nfunc (Command) Help() string\n```\n\n```go\nfunc (c Command) Run(env packer.Environment, args []string) int\n```\n\n```go\nfunc (c Command) Synopsis() string\n```\n\n```go\ntype Fixer interface {\n\t// Fix takes a raw map structure input, potentially transforms it\n\t// in some way, and returns the new, transformed structure. The\n\t// Fix method is allowed to mutate the input.\n\tFix(input map[string]interface{}) (map[string]interface{}, error)\n\n\t// Synopsis returns a string description of what the fixer actually\n\t// does.\n\tSynopsis() string\n}\n```\nA Fixer is something that can perform a fix operation on a template.\n\n```go\ntype FixerCreateTime struct{}\n```\nFixerCreateTime is a Fixer that replaces the \".CreateTime\" template calls with \"{{timestamp}\"\n\n```go\nfunc (FixerCreateTime) Fix(input map[string]interface{}) (map[string]interface{}, error)\n```\n\n```go\nfunc (FixerCreateTime) Synopsis() string\n```\n\n```go\ntype FixerISOMD5 struct{}\n```\nFixerISOMD5 is a Fixer that replaces the \"iso\\_md5\" configuration key with the newer \"iso\\_checksum\" and \"iso\\_checksum\\_type\" within builders.\n\n```go\nfunc (FixerISOMD5) Fix(input map[string]interface{}) (map[string]interface{}, error)\n```\n\n```go\nfunc (FixerISOMD5) Synopsis() string\n```\n\n```go\ntype FixerVMwareRename struct{}\n```\nFixerVMwareRename changes \"virtualbox\" builders to \"virtualbox-iso\"\n\n```go\nfunc (FixerVMwareRename) Fix(input map[string]interface{}) (map[string]interface{}, error)\n```\n\n```go\nfunc (FixerVMwareRename) Synopsis() string\n```\n\n```go\ntype FixerVagrantPPOverride struct{}\n```\nFixerVagrantPPOvveride is a Fixer that replaces the provider-specific overrides for the Vagrant post-processor with the new style introduced as part of Packer 0.5.0.\n\n```go\nfunc (FixerVagrantPPOverride) Fix(input map[string]interface{}) (map[string]interface{}, error)\n```\n\n```go\nfunc (FixerVagrantPPOverride) Synopsis() string\n```\n\n```go\ntype FixerVirtualBoxGAAttach struct{}\n```\nFixerVirtualBoxGAAttach changes the \"guest\\_additions\\_attach\" of a template to \"guest\\_additions\\_mode\".\n\n```go\nfunc (FixerVirtualBoxGAAttach) Fix(input map[string]interface{}) (map[string]interface{}, error)\n```\n\n```go\nfunc (FixerVirtualBoxGAAttach) Synopsis() string\n```\n\n```go\ntype FixerVirtualBoxRename struct{}\n```\nFixerVirtualBoxRename changes \"virtualbox\" builders to \"virtualbox-iso\"\n\n```go\nfunc (FixerVirtualBoxRename) Fix(input map[string]interface{}) (map[string]interface{}, error)\n```\n\n```go\nfunc (FixerVirtualBoxRename) Synopsis() string\n```\n\n","path":"github.com/jetstack/packer/command/fix","name":"fix","synopsis":"","isRedistributable":true}
