packer-cn/builder/virtualbox/common/export_opts.go

25 lines
558 B
Go
Raw Normal View History

//go:generate struct-markdown
package common
import (
2017-04-04 16:39:01 -04:00
"github.com/hashicorp/packer/template/interpolate"
)
type ExportOpts struct {
// Additional options to pass to the
2019-06-06 10:29:25 -04:00
// VBoxManage
// export. This
// can be useful for passing product information to include in the resulting
// appliance file. Packer JSON configuration file example:
ExportOpts []string `mapstructure:"export_opts" required:"false"`
}
func (c *ExportOpts) Prepare(ctx *interpolate.Context) []error {
if c.ExportOpts == nil {
c.ExportOpts = make([]string, 0)
}
return nil
}