Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExecPackerFunc ¶
type ExecPackerWdEnvFunc ¶
var ExecPackerWdEnv ExecPackerWdEnvFunc = func(workDir string, env *map[string]string, args ...string) error { osCmd := exec.Command("packer", args...) osCmd.Dir = workDir osCmd.Stdin = os.Stdin osCmd.Stdout = os.Stdout osCmd.Stderr = os.Stderr osCmd.Env = os.Environ() for key, value := range *env { osCmd.Env = append(osCmd.Env, fmt.Sprintf("%s=%s", key, value)) } return osCmd.Run() }
type ExecPackerWdFunc ¶
type JsonBuilder ¶
type JsonBuilder struct { Type string `json:"type"` VMName string `json:"vm_name"` OutputDirectory string `json:"output_directory"` VMXData map[string]string `json:"vmx_data"` }
JsonBuilder - A few pieces of the Packer JSON builders list.
type JsonSpec ¶
type JsonSpec struct {
Builders []JsonBuilder
}
JsonSpec - Wrapper for the builders list.
func SpecFromPath ¶
Click to show internal directories.
Click to hide internal directories.