Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { common.PackerConfig `mapstructure:",squash"` // The name of the bucket your image is in. Bucket string `mapstructure:"bucket_name" required:"true"` // The name of the channel to use when retrieving your image Channel string `mapstructure:"channel" required:"true"` }
type Datasource ¶
type Datasource struct {
// contains filtered or unexported fields
}
func (*Datasource) ConfigSpec ¶
func (d *Datasource) ConfigSpec() hcldec.ObjectSpec
func (*Datasource) Configure ¶
func (d *Datasource) Configure(raws ...interface{}) error
func (*Datasource) OutputSpec ¶
func (d *Datasource) OutputSpec() hcldec.ObjectSpec
type DatasourceOutput ¶
type DatasourceOutput struct { // who created the iteration AuthorID string `mapstructure:"author_id"` // Name of the bucket that the iteration was retrieved from BucketName string `mapstructure:"bucket_name"` // If true, this iteration is considered "ready to use" and will be // returned even if the include_incomplete flag is "false" in the // list iterations request. Note that if you are retrieving an iteration // using a channel, this will always be "true"; channels cannot be assigned // to incomplete iterations. Complete bool `mapstructure:"complete"` // The date the iteration was created. CreatedAt string `mapstructure:"created_at"` // The fingerprint of the build; this could be a git sha or other unique // identifier as set by the Packer build that created this iteration. Fingerprint string `mapstructure:"fingerprint"` // The iteration id. This is a ULID, which is a unique identifier similar // to a UUID. It is created by the HCP Packer Registry when an iteration is // first created, and is unique to this iteration. ID string `mapstructure:"id"` // The version number assigned to an iteration. This number is an integer, // and is created by the HCP Packer Registry once an iteration is // marked "complete". If a new iteration is marked "complete", the version // that HCP Packer assigns to it will always be the highest previous // iteration version plus one. IncrementalVersion int32 `mapstructure:"incremental_version"` // The date when this iteration was last updated. UpdatedAt string `mapstructure:"updated_at"` }
Essentially a copy of []*models.HashicorpCloudPackerIteration, but without the []Builds or ancestor id.
func (*DatasourceOutput) FlatMapstructure ¶
func (*DatasourceOutput) FlatMapstructure() interface{ HCL2Spec() map[string]hcldec.Spec }
FlatMapstructure returns a new FlatDatasourceOutput. FlatDatasourceOutput is an auto-generated flat version of DatasourceOutput. Where the contents a fields with a `mapstructure:,squash` tag are bubbled up.
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"` Bucket *string `mapstructure:"bucket_name" required:"true" cty:"bucket_name" hcl:"bucket_name"` Channel *string `mapstructure:"channel" required:"true" cty:"channel" hcl:"channel"` }
FlatConfig is an auto-generated flat version of Config. Where the contents of a field with a `mapstructure:,squash` tag are bubbled up.
type FlatDatasourceOutput ¶
type FlatDatasourceOutput struct { AuthorID *string `mapstructure:"author_id" cty:"author_id" hcl:"author_id"` BucketName *string `mapstructure:"bucket_name" cty:"bucket_name" hcl:"bucket_name"` Complete *bool `mapstructure:"complete" cty:"complete" hcl:"complete"` CreatedAt *string `mapstructure:"created_at" cty:"created_at" hcl:"created_at"` Fingerprint *string `mapstructure:"fingerprint" cty:"fingerprint" hcl:"fingerprint"` ID *string `mapstructure:"id" cty:"id" hcl:"id"` IncrementalVersion *int32 `mapstructure:"incremental_version" cty:"incremental_version" hcl:"incremental_version"` UpdatedAt *string `mapstructure:"updated_at" cty:"updated_at" hcl:"updated_at"` }
FlatDatasourceOutput is an auto-generated flat version of DatasourceOutput. Where the contents of a field with a `mapstructure:,squash` tag are bubbled up.
func (*FlatDatasourceOutput) HCL2Spec ¶
func (*FlatDatasourceOutput) HCL2Spec() map[string]hcldec.Spec
HCL2Spec returns the hcl spec of a DatasourceOutput. This spec is used by HCL to read the fields of DatasourceOutput. The decoded values from this spec will then be applied to a FlatDatasourceOutput.