Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Builders = map[string]packer.Builder{ "alicloud-ecs": new(alicloudecsbuilder.Builder), "amazon-chroot": new(amazonchrootbuilder.Builder), "amazon-ebs": new(amazonebsbuilder.Builder), "amazon-ebssurrogate": new(amazonebssurrogatebuilder.Builder), "amazon-ebsvolume": new(amazonebsvolumebuilder.Builder), "amazon-instance": new(amazoninstancebuilder.Builder), "azure-arm": new(azurearmbuilder.Builder), "cloudstack": new(cloudstackbuilder.Builder), "digitalocean": new(digitaloceanbuilder.Builder), "docker": new(dockerbuilder.Builder), "file": new(filebuilder.Builder), "googlecompute": new(googlecomputebuilder.Builder), "hyperv-iso": new(hypervisobuilder.Builder), "hyperv-vmcx": new(hypervvmcxbuilder.Builder), "lxc": new(lxcbuilder.Builder), "lxd": new(lxdbuilder.Builder), "null": new(nullbuilder.Builder), "oneandone": new(oneandonebuilder.Builder), "openstack": new(openstackbuilder.Builder), "oracle-oci": new(oracleocibuilder.Builder), "parallels-iso": new(parallelsisobuilder.Builder), "parallels-pvm": new(parallelspvmbuilder.Builder), "profitbricks": new(profitbricksbuilder.Builder), "qemu": new(qemubuilder.Builder), "triton": new(tritonbuilder.Builder), "virtualbox-iso": new(virtualboxisobuilder.Builder), "virtualbox-ovf": new(virtualboxovfbuilder.Builder), "vmware-iso": new(vmwareisobuilder.Builder), "vmware-vmx": new(vmwarevmxbuilder.Builder), }
var PostProcessors = map[string]packer.PostProcessor{ "alicloud-import": new(alicloudimportpostprocessor.PostProcessor), "amazon-import": new(amazonimportpostprocessor.PostProcessor), "artifice": new(artificepostprocessor.PostProcessor), "atlas": new(atlaspostprocessor.PostProcessor), "checksum": new(checksumpostprocessor.PostProcessor), "compress": new(compresspostprocessor.PostProcessor), "docker-import": new(dockerimportpostprocessor.PostProcessor), "docker-push": new(dockerpushpostprocessor.PostProcessor), "docker-save": new(dockersavepostprocessor.PostProcessor), "docker-tag": new(dockertagpostprocessor.PostProcessor), "googlecompute-export": new(googlecomputeexportpostprocessor.PostProcessor), "manifest": new(manifestpostprocessor.PostProcessor), "shell-local": new(shelllocalpostprocessor.PostProcessor), "vagrant": new(vagrantpostprocessor.PostProcessor), "vagrant-cloud": new(vagrantcloudpostprocessor.PostProcessor), "vsphere": new(vspherepostprocessor.PostProcessor), "vsphere-template": new(vspheretemplatepostprocessor.PostProcessor), }
var Provisioners = map[string]packer.Provisioner{ "ansible": new(ansibleprovisioner.Provisioner), "ansible-local": new(ansiblelocalprovisioner.Provisioner), "chef-client": new(chefclientprovisioner.Provisioner), "chef-solo": new(chefsoloprovisioner.Provisioner), "converge": new(convergeprovisioner.Provisioner), "file": new(fileprovisioner.Provisioner), "powershell": new(powershellprovisioner.Provisioner), "puppet-masterless": new(puppetmasterlessprovisioner.Provisioner), "puppet-server": new(puppetserverprovisioner.Provisioner), "salt-masterless": new(saltmasterlessprovisioner.Provisioner), "shell": new(shellprovisioner.Provisioner), "shell-local": new(shelllocalprovisioner.Provisioner), "windows-restart": new(windowsrestartprovisioner.Provisioner), "windows-shell": new(windowsshellprovisioner.Provisioner), }
Functions ¶
This section is empty.
Types ¶
type BuildCommand ¶
type BuildCommand struct {
Meta
}
func (BuildCommand) Help ¶
func (BuildCommand) Help() string
func (BuildCommand) Run ¶
func (c BuildCommand) Run(args []string) int
func (BuildCommand) Synopsis ¶
func (BuildCommand) Synopsis() string
type FixCommand ¶
type FixCommand struct {
Meta
}
func (*FixCommand) Help ¶
func (*FixCommand) Help() string
func (*FixCommand) Run ¶
func (c *FixCommand) Run(args []string) int
func (*FixCommand) Synopsis ¶
func (c *FixCommand) Synopsis() string
type FlagSetFlags ¶ added in v0.8.0
type FlagSetFlags uint
FlagSetFlags is an enum to define what flags are present in the default FlagSet returned by Meta.FlagSet
const ( FlagSetNone FlagSetFlags = 0 FlagSetBuildFilter FlagSetFlags = 1 << iota FlagSetVars )
type InspectCommand ¶
type InspectCommand struct {
Meta
}
func (*InspectCommand) Help ¶
func (*InspectCommand) Help() string
func (*InspectCommand) Run ¶
func (c *InspectCommand) Run(args []string) int
func (*InspectCommand) Synopsis ¶
func (c *InspectCommand) Synopsis() string
type Meta ¶
type Meta struct { CoreConfig *packer.CoreConfig Cache packer.Cache Ui packer.Ui Version string // contains filtered or unexported fields }
Meta contains the meta-options and functionality that nearly every Packer command inherits.
func (*Meta) BuildNames ¶ added in v0.8.0
BuildNames returns the list of builds that are in the given core that we care about taking into account the only and except flags.
func (*Meta) Core ¶ added in v0.8.0
Core returns the core for the given template given the configured CoreConfig and user variables on this Meta.
func (*Meta) FlagSet ¶ added in v0.8.0
func (m *Meta) FlagSet(n string, fs FlagSetFlags) *flag.FlagSet
FlagSet returns a FlagSet with the common flags that every command implements. The exact behavior of FlagSet can be configured using the flags as the second parameter, for example to disable build settings on the commands that don't handle builds.
func (*Meta) ValidateFlags ¶ added in v0.8.0
ValidateFlags should be called after parsing flags to validate the given flags
type PluginCommand ¶ added in v0.9.0
type PluginCommand struct {
Meta
}
func (*PluginCommand) Help ¶ added in v0.9.0
func (*PluginCommand) Help() string
func (*PluginCommand) Run ¶ added in v0.9.0
func (c *PluginCommand) Run(args []string) int
func (*PluginCommand) Synopsis ¶ added in v0.9.0
func (c *PluginCommand) Synopsis() string
type PushCommand ¶
type PushCommand struct { Meta // contains filtered or unexported fields }
func (*PushCommand) Help ¶
func (*PushCommand) Help() string
func (*PushCommand) Run ¶
func (c *PushCommand) Run(args []string) int
func (*PushCommand) Synopsis ¶
func (*PushCommand) Synopsis() string
type ValidateCommand ¶
type ValidateCommand struct {
Meta
}
func (*ValidateCommand) Help ¶
func (*ValidateCommand) Help() string
func (*ValidateCommand) Run ¶
func (c *ValidateCommand) Run(args []string) int
func (*ValidateCommand) Synopsis ¶
func (*ValidateCommand) Synopsis() string
type VersionCheckFunc ¶
type VersionCheckFunc func() (VersionCheckInfo, error)
VersionCheckFunc is the callback called by the Version command to check if there is a new version of Packer.
type VersionCheckInfo ¶
VersionCheckInfo is the return value for the VersionCheckFunc callback and tells the Version command information about the latest version of Packer.
type VersionCommand ¶
type VersionCommand struct { Meta CheckFunc VersionCheckFunc }
VersionCommand is a Command implementation prints the version.
func (*VersionCommand) Help ¶
func (c *VersionCommand) Help() string
func (*VersionCommand) Run ¶
func (c *VersionCommand) Run(args []string) int
func (*VersionCommand) Synopsis ¶
func (c *VersionCommand) Synopsis() string