Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildOptionFlags ¶
func BuildOptionFlags(fs *flag.FlagSet, f *BuildOptions)
BuildOptionFlags sets the proper command line flags needed for build options.
Types ¶
type AppendSliceValue ¶
type AppendSliceValue []string
AppendSliceValue implements the flag.Value interface and allows multiple calls to the same variable to append a list.
func (*AppendSliceValue) Set ¶
func (s *AppendSliceValue) Set(value string) error
func (*AppendSliceValue) String ¶
func (s *AppendSliceValue) String() string
type BuildOptions ¶
type BuildOptions struct { UserVarFiles []string UserVars map[string]string Except []string Only []string }
BuildOptions is a set of options related to builds that can be set from the command line.
func (*BuildOptions) AllUserVars ¶
func (f *BuildOptions) AllUserVars() (map[string]string, error)
AllUserVars returns the user variables, compiled from both the file paths and the vars on the command line.
func (*BuildOptions) Builds ¶
func (f *BuildOptions) Builds(t *packer.Template, cf *packer.ComponentFinder) ([]packer.Build, error)
Builds returns the builds out of the given template that pass the configured options.
func (*BuildOptions) Validate ¶
func (f *BuildOptions) Validate() error
Validate validates the options
type SliceValue ¶
type SliceValue []string
SliceValue implements the flag.Value interface and allows a list of strings to be given on the command line and properly parsed into a slice of strings internally.
func (*SliceValue) Set ¶
func (s *SliceValue) Set(value string) error
func (*SliceValue) String ¶
func (s *SliceValue) String() string