MCPcopy
hub / github.com/hashicorp/packer / Fixer

Interface Fixer

fix/fixer.go:7–22  ·  view source on GitHub ↗

A Fixer is something that can perform a fix operation on a template.

Source from the content-addressed store, hash-verified

5
6// A Fixer is something that can perform a fix operation on a template.
7type Fixer interface {
8 // DeprecatedOptions returns the name(s) of the option(s) being replaced in
9 // this fixer. It is used to generate a list of deprecated options that the
10 // template parser checks against to warn users that they need to call
11 // `packer fix` against their templates after upgrading.
12 DeprecatedOptions() map[string][]string
13
14 // Fix takes a raw map structure input, potentially transforms it
15 // in some way, and returns the new, transformed structure. The
16 // Fix method is allowed to mutate the input.
17 Fix(input map[string]interface{}) (map[string]interface{}, error)
18
19 // Synopsis returns a string description of what the fixer actually
20 // does.
21 Synopsis() string
22}
23
24// Fixers is the map of all available fixers, by name.
25var Fixers map[string]Fixer

Callers 3

mainFunction · 0.65
RunContextMethod · 0.65
HelpMethod · 0.65

Implementers 15

FixerSSHDisableAgentfix/fixer_sshdisableagent.go
FixerISOMD5fix/fixer_iso_md5.go
FixerVMwareCompactionfix/fixer_vmware_compaction.go
FixerVirtualBoxRenamefix/fixer_virtualbox_rename.go
FixerVMwareRenamefix/fixer_vmware_rename.go
FixerScalewayAccessKeyfix/fixer_scaleway_access_key.go
FixerAzureExcludeFromLatestfix/fixer_azure_exclude_from_latest.go
FixerAmazonShutdownBehaviorfix/fixer_amazon_shutdown_behavior.go
FixerCommConfigfix/fixer_comm_config.go
FixerVSphereNetworkDiskfix/fixer_vsphere_network_storage.go
FixerAmazonPrivateIPfix/fixer_amazon_private_ip.go
FizerHypervCPUandRAMfix/fixer_hyperv_cpu_and_ram_naming.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…