Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // Main packer paramters from common module. common.PackerConfig `mapstructure:",squash"` // Parameters specific to this post processor. // Those Parameters names should start from capital later. // Only such properties are exported to other packages then local scope. ImageName string `mapstructure:"image_name" required:"false"` ImagePath string `mapstructure:"image_path" required:"false"` ImageDescription string `mapstructure:"description" required:"false"` ImageCompression uint32 `mapstructure:"compression" required:"true"` // contains filtered or unexported fields }
type FlatConfig ¶
type FlatConfig struct { PackerBuildName *string `mapstructure:"packer_build_name" cty:"packer_build_name" hcl:"packer_build_name"` PackerBuilderType *string `mapstructure:"packer_builder_type" cty:"packer_builder_type" hcl:"packer_builder_type"` PackerCoreVersion *string `mapstructure:"packer_core_version" cty:"packer_core_version" hcl:"packer_core_version"` PackerDebug *bool `mapstructure:"packer_debug" cty:"packer_debug" hcl:"packer_debug"` PackerForce *bool `mapstructure:"packer_force" cty:"packer_force" hcl:"packer_force"` PackerOnError *string `mapstructure:"packer_on_error" cty:"packer_on_error" hcl:"packer_on_error"` PackerUserVars map[string]string `mapstructure:"packer_user_variables" cty:"packer_user_variables" hcl:"packer_user_variables"` PackerSensitiveVars []string `mapstructure:"packer_sensitive_variables" cty:"packer_sensitive_variables" hcl:"packer_sensitive_variables"` ImageName *string `mapstructure:"image_name" required:"true" cty:"image_name" hcl:"image_name"` ImagePath *string `mapstructure:"image_path" required:"true" cty:"image_path" hcl:"image_path"` ImageDescription *string `mapstructure:"description" required:"false" cty:"description" hcl:"description"` ImageCompression *uint32 `mapstructure:"compression" required:"true" cty:"compression" hcl:"compression"` }
FlatConfig is an auto-generated flat version of Config. Where the contents of a field with a `mapstructure:,squash` tag are bubbled up.
type PostProcessor ¶
type PostProcessor struct {
// contains filtered or unexported fields
}
func (*PostProcessor) ConfigSpec ¶
func (pp *PostProcessor) ConfigSpec() hcldec.ObjectSpec
func (*PostProcessor) Configure ¶
func (pp *PostProcessor) Configure(raws ...interface{}) error
Click to show internal directories.
Click to hide internal directories.