Documentation
¶
Index ¶
- Variables
- type Fixer
- type FixerAmazonEnhancedNetworking
- type FixerAmazonPrivateIP
- type FixerAmazonShutdownBehavior
- type FixerCreateTime
- type FixerDockerEmail
- type FixerHypervDeprecations
- type FixerHypervVmxcTypo
- type FixerISOMD5
- type FixerManifestFilename
- type FixerParallelsDeprecations
- type FixerParallelsHeadless
- type FixerPowerShellEscapes
- type FixerSSHDisableAgent
- type FixerSSHKeyPath
- type FixerVMwareCompaction
- type FixerVMwareRename
- type FixerVagrantPPOverride
- type FixerVirtualBoxGAAttach
- type FixerVirtualBoxRename
- type PP
Constants ¶
This section is empty.
Variables ¶
var FixerOrder []string
FixerOrder is the default order the fixers should be run.
var Fixers map[string]Fixer
Fixers is the map of all available fixers, by name.
Functions ¶
This section is empty.
Types ¶
type Fixer ¶
type Fixer interface { // Fix takes a raw map structure input, potentially transforms it // in some way, and returns the new, transformed structure. The // Fix method is allowed to mutate the input. Fix(input map[string]interface{}) (map[string]interface{}, error) // Synopsis returns a string description of what the fixer actually // does. Synopsis() string }
A Fixer is something that can perform a fix operation on a template.
type FixerAmazonEnhancedNetworking ¶ added in v1.1.0
type FixerAmazonEnhancedNetworking struct{}
FixerAmazonEnhancedNetworking is a Fixer that replaces the "enhanced_networking" configuration key with the clearer "ena_support". This disambiguates ena_support from sriov_support.
func (FixerAmazonEnhancedNetworking) Fix ¶ added in v1.1.0
func (FixerAmazonEnhancedNetworking) Fix(input map[string]interface{}) (map[string]interface{}, error)
func (FixerAmazonEnhancedNetworking) Synopsis ¶ added in v1.1.0
func (FixerAmazonEnhancedNetworking) Synopsis() string
type FixerAmazonPrivateIP ¶ added in v1.2.0
type FixerAmazonPrivateIP struct{}
FixerAmazonPrivateIP is a Fixer that replaces instances of `"private_ip": true` with `"ssh_interface": "private_ip"`
func (FixerAmazonPrivateIP) Fix ¶ added in v1.2.0
func (FixerAmazonPrivateIP) Fix(input map[string]interface{}) (map[string]interface{}, error)
func (FixerAmazonPrivateIP) Synopsis ¶ added in v1.2.0
func (FixerAmazonPrivateIP) Synopsis() string
type FixerAmazonShutdownBehavior ¶
type FixerAmazonShutdownBehavior struct{}
FixerAmazonShutdownBehavior fix the spelling of "shutdown_behavior" template in a Amazon builder
func (FixerAmazonShutdownBehavior) Fix ¶
func (FixerAmazonShutdownBehavior) Fix(input map[string]interface{}) (map[string]interface{}, error)
func (FixerAmazonShutdownBehavior) Synopsis ¶
func (FixerAmazonShutdownBehavior) Synopsis() string
type FixerCreateTime ¶
type FixerCreateTime struct{}
FixerCreateTime is a Fixer that replaces the ".CreateTime" template calls with "{{timestamp}"
func (FixerCreateTime) Fix ¶
func (FixerCreateTime) Fix(input map[string]interface{}) (map[string]interface{}, error)
func (FixerCreateTime) Synopsis ¶
func (FixerCreateTime) Synopsis() string
type FixerDockerEmail ¶ added in v1.1.2
type FixerDockerEmail struct{}
func (FixerDockerEmail) Fix ¶ added in v1.1.2
func (FixerDockerEmail) Fix(input map[string]interface{}) (map[string]interface{}, error)
func (FixerDockerEmail) Synopsis ¶ added in v1.1.2
func (FixerDockerEmail) Synopsis() string
type FixerHypervDeprecations ¶ added in v1.3.0
type FixerHypervDeprecations struct{}
FixerHypervDeprecations removes the deprecated "vhd_temp_path" setting from Hyper-V ISO builder templates
func (FixerHypervDeprecations) Fix ¶ added in v1.3.0
func (FixerHypervDeprecations) Fix(input map[string]interface{}) (map[string]interface{}, error)
func (FixerHypervDeprecations) Synopsis ¶ added in v1.3.0
func (FixerHypervDeprecations) Synopsis() string
type FixerHypervVmxcTypo ¶ added in v1.3.0
type FixerHypervVmxcTypo struct{}
FixerHypervVmxcTypo fixes the typo in "clone_from_vmxc_path" replacing it with "clone_from_vmcx_path" in Hyper-V VMCX builder templates
func (FixerHypervVmxcTypo) Fix ¶ added in v1.3.0
func (FixerHypervVmxcTypo) Fix(input map[string]interface{}) (map[string]interface{}, error)
func (FixerHypervVmxcTypo) Synopsis ¶ added in v1.3.0
func (FixerHypervVmxcTypo) Synopsis() string
type FixerISOMD5 ¶
type FixerISOMD5 struct{}
FixerISOMD5 is a Fixer that replaces the "iso_md5" configuration key with the newer "iso_checksum" and "iso_checksum_type" within builders.
func (FixerISOMD5) Fix ¶
func (FixerISOMD5) Fix(input map[string]interface{}) (map[string]interface{}, error)
func (FixerISOMD5) Synopsis ¶
func (FixerISOMD5) Synopsis() string
type FixerManifestFilename ¶
type FixerManifestFilename struct{}
FixerManifestFilename renames any Filename to Output
func (FixerManifestFilename) Fix ¶
func (FixerManifestFilename) Fix(input map[string]interface{}) (map[string]interface{}, error)
func (FixerManifestFilename) Synopsis ¶
func (FixerManifestFilename) Synopsis() string
type FixerParallelsDeprecations ¶
type FixerParallelsDeprecations struct{}
FixerParallelsDeprecations removes "parallels_tools_host_path" from a template in a Parallels builder and changes "guest_os_distribution" to "guest_os_type", possibly overwriting any existing "guest_os_type"
func (FixerParallelsDeprecations) Fix ¶
func (FixerParallelsDeprecations) Fix(input map[string]interface{}) (map[string]interface{}, error)
func (FixerParallelsDeprecations) Synopsis ¶
func (FixerParallelsDeprecations) Synopsis() string
type FixerParallelsHeadless ¶
type FixerParallelsHeadless struct{}
FixerParallelsHeadless removes "headless" from a template in a Parallels builder
func (FixerParallelsHeadless) Fix ¶
func (FixerParallelsHeadless) Fix(input map[string]interface{}) (map[string]interface{}, error)
func (FixerParallelsHeadless) Synopsis ¶
func (FixerParallelsHeadless) Synopsis() string
type FixerPowerShellEscapes ¶ added in v1.2.0
type FixerPowerShellEscapes struct{}
FixerPowerShellEscapes removes the PowerShell escape character from user environment variables and elevated username and password strings
func (FixerPowerShellEscapes) Fix ¶ added in v1.2.0
func (FixerPowerShellEscapes) Fix(input map[string]interface{}) (map[string]interface{}, error)
func (FixerPowerShellEscapes) Synopsis ¶ added in v1.2.0
func (FixerPowerShellEscapes) Synopsis() string
type FixerSSHDisableAgent ¶ added in v1.1.0
type FixerSSHDisableAgent struct{}
FixerSSHDisableAgent changes the "ssh_disable_agent" of a template to "ssh_disable_agent_forwarding".
func (FixerSSHDisableAgent) Fix ¶ added in v1.1.0
func (FixerSSHDisableAgent) Fix(input map[string]interface{}) (map[string]interface{}, error)
func (FixerSSHDisableAgent) Synopsis ¶ added in v1.1.0
func (FixerSSHDisableAgent) Synopsis() string
type FixerSSHKeyPath ¶
type FixerSSHKeyPath struct{}
FixerSSHKeyPath changes the "ssh_key_path" of a template to "ssh_private_key_file".
func (FixerSSHKeyPath) Fix ¶
func (FixerSSHKeyPath) Fix(input map[string]interface{}) (map[string]interface{}, error)
func (FixerSSHKeyPath) Synopsis ¶
func (FixerSSHKeyPath) Synopsis() string
type FixerVMwareCompaction ¶ added in v1.3.0
type FixerVMwareCompaction struct{}
FixerVMwareCompaction adds "skip_compaction = true" to "vmware-iso" builders with incompatible disk_type_id
func (FixerVMwareCompaction) Fix ¶ added in v1.3.0
func (FixerVMwareCompaction) Fix(input map[string]interface{}) (map[string]interface{}, error)
func (FixerVMwareCompaction) Synopsis ¶ added in v1.3.0
func (FixerVMwareCompaction) Synopsis() string
type FixerVMwareRename ¶
type FixerVMwareRename struct{}
FixerVMwareRename changes "virtualbox" builders to "virtualbox-iso"
func (FixerVMwareRename) Fix ¶
func (FixerVMwareRename) Fix(input map[string]interface{}) (map[string]interface{}, error)
func (FixerVMwareRename) Synopsis ¶
func (FixerVMwareRename) Synopsis() string
type FixerVagrantPPOverride ¶
type FixerVagrantPPOverride struct{}
FixerVagrantPPOverride 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.
func (FixerVagrantPPOverride) Fix ¶
func (FixerVagrantPPOverride) Fix(input map[string]interface{}) (map[string]interface{}, error)
func (FixerVagrantPPOverride) Synopsis ¶
func (FixerVagrantPPOverride) Synopsis() string
type FixerVirtualBoxGAAttach ¶
type FixerVirtualBoxGAAttach struct{}
FixerVirtualBoxGAAttach changes the "guest_additions_attach" of a template to "guest_additions_mode".
func (FixerVirtualBoxGAAttach) Fix ¶
func (FixerVirtualBoxGAAttach) Fix(input map[string]interface{}) (map[string]interface{}, error)
func (FixerVirtualBoxGAAttach) Synopsis ¶
func (FixerVirtualBoxGAAttach) Synopsis() string
type FixerVirtualBoxRename ¶
type FixerVirtualBoxRename struct{}
FixerVirtualBoxRename changes "virtualbox" builders to "virtualbox-iso"
func (FixerVirtualBoxRename) Fix ¶
func (FixerVirtualBoxRename) Fix(input map[string]interface{}) (map[string]interface{}, error)
func (FixerVirtualBoxRename) Synopsis ¶
func (FixerVirtualBoxRename) Synopsis() string
Source Files
¶
- fixer.go
- fixer_amazon_enhanced_networking.go
- fixer_amazon_private_ip.go
- fixer_amazon_shutdown_behavior.go
- fixer_createtime.go
- fixer_docker_email.go
- fixer_hyperv_deprecations.go
- fixer_hyperv_vmxc_typo.go
- fixer_iso_md5.go
- fixer_parallels_deprecations.go
- fixer_parallels_headless.go
- fixer_powershell_escapes.go
- fixer_pp_manifest_filename.go
- fixer_pp_vagrant_override.go
- fixer_sshdisableagent.go
- fixer_sshkeypath.go
- fixer_virtualbox_gaattach.go
- fixer_virtualbox_rename.go
- fixer_vmware_compaction.go
- fixer_vmware_rename.go
- helpers.go