fix

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2014 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FixerOrder []string

FixerOrder is the default order the fixers should be run.

View Source
var Fixers map[string]Fixer

Fixers is the map of all available fixers, by name.

Functions

This section is empty.

Types

type Command

type Command byte

func (Command) Help

func (Command) Help() string

func (Command) Run

func (c Command) Run(env packer.Environment, args []string) int

func (Command) Synopsis

func (c Command) Synopsis() string

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 FixerCreateTime added in v0.3.0

type FixerCreateTime struct{}

FixerCreateTime is a Fixer that replaces the ".CreateTime" template calls with "{{timestamp}"

func (FixerCreateTime) Fix added in v0.3.0

func (FixerCreateTime) Fix(input map[string]interface{}) (map[string]interface{}, error)

func (FixerCreateTime) Synopsis added in v0.3.11

func (FixerCreateTime) 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 added in v0.3.11

func (FixerISOMD5) Synopsis() string

type FixerVMwareRename added in v0.5.0

type FixerVMwareRename struct{}

FixerVMwareRename changes "virtualbox" builders to "virtualbox-iso"

func (FixerVMwareRename) Fix added in v0.5.0

func (FixerVMwareRename) Fix(input map[string]interface{}) (map[string]interface{}, error)

func (FixerVMwareRename) Synopsis added in v0.5.0

func (FixerVMwareRename) Synopsis() string

type FixerVagrantPPOverride added in v0.5.0

type FixerVagrantPPOverride struct{}

FixerVagrantPPOvveride 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 added in v0.5.0

func (FixerVagrantPPOverride) Fix(input map[string]interface{}) (map[string]interface{}, error)

func (FixerVagrantPPOverride) Synopsis added in v0.5.0

func (FixerVagrantPPOverride) Synopsis() string

type FixerVirtualBoxGAAttach added in v0.3.11

type FixerVirtualBoxGAAttach struct{}

FixerVirtualBoxGAAttach changes the "guest_additions_attach" of a template to "guest_additions_mode".

func (FixerVirtualBoxGAAttach) Fix added in v0.3.11

func (FixerVirtualBoxGAAttach) Fix(input map[string]interface{}) (map[string]interface{}, error)

func (FixerVirtualBoxGAAttach) Synopsis added in v0.3.11

func (FixerVirtualBoxGAAttach) Synopsis() string

type FixerVirtualBoxRename added in v0.5.0

type FixerVirtualBoxRename struct{}

FixerVirtualBoxRename changes "virtualbox" builders to "virtualbox-iso"

func (FixerVirtualBoxRename) Fix added in v0.5.0

func (FixerVirtualBoxRename) Fix(input map[string]interface{}) (map[string]interface{}, error)

func (FixerVirtualBoxRename) Synopsis added in v0.5.0

func (FixerVirtualBoxRename) Synopsis() string

Jump to

Keyboard shortcuts

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