github.com/phobos182/packer@v0.2.3-0.20130819023704-c84d2aeffc68/common/packer_config.go (about)

     1  package common
     2  
     3  // PackerConfig is a struct that contains the configuration keys that
     4  // are sent by packer, properly tagged already so mapstructure can load
     5  // them. Embed this structure into your configuration class to get it.
     6  type PackerConfig struct {
     7  	PackerBuildName   string            `mapstructure:"packer_build_name"`
     8  	PackerBuilderType string            `mapstructure:"packer_builder_type"`
     9  	PackerDebug       bool              `mapstructure:"packer_debug"`
    10  	PackerForce       bool              `mapstructure:"packer_force"`
    11  	PackerUserVars    map[string]string `mapstructure:"packer_user_variables"`
    12  }