{"modulePath":"github.com/StackPointCloud/packer","version":"v0.10.1","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package command\n\n## Variables\n\n```go\nvar Builders = map[string]packer.Builder{\n\t\"amazon-chroot\":   new(amazonchrootbuilder.Builder),\n\t\"amazon-ebs\":      new(amazonebsbuilder.Builder),\n\t\"amazon-instance\": new(amazoninstancebuilder.Builder),\n\t\"azure-arm\":       new(azurearmbuilder.Builder),\n\t\"digitalocean\":    new(digitaloceanbuilder.Builder),\n\t\"docker\":          new(dockerbuilder.Builder),\n\t\"file\":            new(filebuilder.Builder),\n\t\"googlecompute\":   new(googlecomputebuilder.Builder),\n\t\"null\":            new(nullbuilder.Builder),\n\t\"openstack\":       new(openstackbuilder.Builder),\n\t\"parallels-iso\":   new(parallelsisobuilder.Builder),\n\t\"parallels-pvm\":   new(parallelspvmbuilder.Builder),\n\t\"qemu\":            new(qemubuilder.Builder),\n\t\"virtualbox-iso\":  new(virtualboxisobuilder.Builder),\n\t\"virtualbox-ovf\":  new(virtualboxovfbuilder.Builder),\n\t\"vmware-iso\":      new(vmwareisobuilder.Builder),\n\t\"vmware-vmx\":      new(vmwarevmxbuilder.Builder),\n}\n```\n\n```go\nvar PostProcessors = map[string]packer.PostProcessor{\n\t\"amazon-import\": new(amazonimportpostprocessor.PostProcessor),\n\t\"artifice\":      new(artificepostprocessor.PostProcessor),\n\t\"atlas\":         new(atlaspostprocessor.PostProcessor),\n\t\"compress\":      new(compresspostprocessor.PostProcessor),\n\t\"docker-import\": new(dockerimportpostprocessor.PostProcessor),\n\t\"docker-push\":   new(dockerpushpostprocessor.PostProcessor),\n\t\"docker-save\":   new(dockersavepostprocessor.PostProcessor),\n\t\"docker-tag\":    new(dockertagpostprocessor.PostProcessor),\n\t\"shell-local\":   new(shelllocalpostprocessor.PostProcessor),\n\t\"vagrant\":       new(vagrantpostprocessor.PostProcessor),\n\t\"vagrant-cloud\": new(vagrantcloudpostprocessor.PostProcessor),\n\t\"vsphere\":       new(vspherepostprocessor.PostProcessor),\n}\n```\n\n```go\nvar Provisioners = map[string]packer.Provisioner{\n\t\"ansible\":           new(ansibleprovisioner.Provisioner),\n\t\"ansible-local\":     new(ansiblelocalprovisioner.Provisioner),\n\t\"chef-client\":       new(chefclientprovisioner.Provisioner),\n\t\"chef-solo\":         new(chefsoloprovisioner.Provisioner),\n\t\"file\":              new(fileprovisioner.Provisioner),\n\t\"powershell\":        new(powershellprovisioner.Provisioner),\n\t\"puppet-masterless\": new(puppetmasterlessprovisioner.Provisioner),\n\t\"puppet-server\":     new(puppetserverprovisioner.Provisioner),\n\t\"salt-masterless\":   new(saltmasterlessprovisioner.Provisioner),\n\t\"shell\":             new(shellprovisioner.Provisioner),\n\t\"shell-local\":       new(shelllocalprovisioner.Provisioner),\n\t\"windows-restart\":   new(windowsrestartprovisioner.Provisioner),\n\t\"windows-shell\":     new(windowsshellprovisioner.Provisioner),\n}\n```\n\n## Types\n\n```go\ntype BuildCommand struct {\n\tMeta\n}\n```\n\n```go\nfunc (BuildCommand) Help() string\n```\n\n```go\nfunc (c BuildCommand) Run(args []string) int\n```\n\n```go\nfunc (BuildCommand) Synopsis() string\n```\n\n```go\ntype FixCommand struct {\n\tMeta\n}\n```\n\n```go\nfunc (*FixCommand) Help() string\n```\n\n```go\nfunc (c *FixCommand) Run(args []string) int\n```\n\n```go\nfunc (c *FixCommand) Synopsis() string\n```\n\n```go\ntype FlagSetFlags uint\n```\nFlagSetFlags is an enum to define what flags are present in the default FlagSet returned by Meta.FlagSet\n\n```go\nconst (\n\tFlagSetNone        FlagSetFlags = 0\n\tFlagSetBuildFilter FlagSetFlags = 1 \u003c\u003c iota\n\tFlagSetVars\n)\n```\n\n```go\ntype InspectCommand struct {\n\tMeta\n}\n```\n\n```go\nfunc (*InspectCommand) Help() string\n```\n\n```go\nfunc (c *InspectCommand) Run(args []string) int\n```\n\n```go\nfunc (c *InspectCommand) Synopsis() string\n```\n\n```go\ntype Meta struct {\n\tCoreConfig *packer.CoreConfig\n\tCache      packer.Cache\n\tUi         packer.Ui\n\tVersion    string\n\t// contains filtered or unexported fields\n}\n```\nMeta contains the meta-options and functionality that nearly every Packer command inherits.\n\n```go\nfunc (m *Meta) BuildNames(c *packer.Core) []string\n```\nBuildNames returns the list of builds that are in the given core that we care about taking into account the only and except flags.\n\n```go\nfunc (m *Meta) Core(tpl *template.Template) (*packer.Core, error)\n```\nCore returns the core for the given template given the configured CoreConfig and user variables on this Meta.\n\n```go\nfunc (m *Meta) FlagSet(n string, fs FlagSetFlags) *flag.FlagSet\n```\nFlagSet 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.\n\n```go\nfunc (m *Meta) ValidateFlags() error\n```\nValidateFlags should be called after parsing flags to validate the given flags\n\n```go\ntype PluginCommand struct {\n\tMeta\n}\n```\n\n```go\nfunc (*PluginCommand) Help() string\n```\n\n```go\nfunc (c *PluginCommand) Run(args []string) int\n```\n\n```go\nfunc (c *PluginCommand) Synopsis() string\n```\n\n```go\ntype PushCommand struct {\n\tMeta\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (*PushCommand) Help() string\n```\n\n```go\nfunc (c *PushCommand) Run(args []string) int\n```\n\n```go\nfunc (*PushCommand) Synopsis() string\n```\n\n```go\ntype ValidateCommand struct {\n\tMeta\n}\n```\n\n```go\nfunc (*ValidateCommand) Help() string\n```\n\n```go\nfunc (c *ValidateCommand) Run(args []string) int\n```\n\n```go\nfunc (*ValidateCommand) Synopsis() string\n```\n\n```go\ntype VersionCheckFunc func() (VersionCheckInfo, error)\n```\nVersionCheckFunc is the callback called by the Version command to check if there is a new version of Packer.\n\n```go\ntype VersionCheckInfo struct {\n\tOutdated bool\n\tLatest   string\n\tAlerts   []string\n}\n```\nVersionCheckInfo is the return value for the VersionCheckFunc callback and tells the Version command information about the latest version of Packer.\n\n```go\ntype VersionCommand struct {\n\tMeta\n\n\tRevision          string\n\tVersion           string\n\tVersionPrerelease string\n\tCheckFunc         VersionCheckFunc\n}\n```\nVersionCommand is a Command implementation prints the version.\n\n```go\nfunc (c *VersionCommand) Help() string\n```\n\n```go\nfunc (c *VersionCommand) Run(args []string) int\n```\n\n```go\nfunc (c *VersionCommand) Synopsis() string\n```\n\n","path":"github.com/StackPointCloud/packer/command","name":"command","synopsis":"","isRedistributable":true}
