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"`
helper.LinodeCommon `mapstructure:",squash"`
// Matching the label of an image by exact label
Label string `mapstructure:"label"`
// Matching the label of an image by a regular expression
LabelRegex string `mapstructure:"label_regex"`
// Matching the ID of an image by exact ID
ID string `mapstructure:"id"`
// Matching the ID of an image by a regular expression
IDRegex string `mapstructure:"id_regex"`
// Whether to use the latest created image when there are multiple matches
Latest bool `mapstructure:"latest"`
}
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 {
// The unique ID of this Image.
ID string `mapstructure:"id"`
// A list containing the following possible capabilities of this Image:
// - cloud-init: This Image supports cloud-init with Metadata. Only applies to public Images.
Capabilities []string `mapstructure:"capabilities"`
// When this Image was created.
Created string `mapstructure:"created"`
// The name of the User who created this Image, or “linode” for public Images.
CreatedBy string `mapstructure:"created_by"`
// Whether or not this Image is deprecated. Will only be true for deprecated public Images.
Deprecated bool `mapstructure:"deprecated"`
// A detailed description of this Image.
Description string `mapstructure:"description"`
// The date of the public Image’s planned end of life. `null` for private Images.
EOL string `mapstructure:"eol"`
// Expiry date of the image.
// Only Images created automatically from a deleted Linode (type=automatic) will expire.
Expiry string `mapstructure:"expiry"`
// True if the Image is a public distribution image.
// False if Image is private Account-specific Image.
IsPublic bool `mapstructure:"is_public"`
// A short description of the Image.
Label string `mapstructure:"label"`
// The minimum size this Image needs to deploy. Size is in MB.
Size int `mapstructure:"size"`
// Enum: `manual` `automatic`
// How the Image was created.
// "Manual" Images can be created at any time.
// "Automatic" Images are created automatically from a deleted Linode.
Type string `mapstructure:"type"`
// When this Image was last updated.
Updated string `mapstructure:"updated"`
// The upstream distribution vendor. `null` for private Images.
Vendor string `mapstructure:"vendor"`
}
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"`
PersonalAccessToken *string `mapstructure:"linode_token" cty:"linode_token" hcl:"linode_token"`
APICAPath *string `mapstructure:"api_ca_path" cty:"api_ca_path" hcl:"api_ca_path"`
Label *string `mapstructure:"label" cty:"label" hcl:"label"`
LabelRegex *string `mapstructure:"label_regex" cty:"label_regex" hcl:"label_regex"`
ID *string `mapstructure:"id" cty:"id" hcl:"id"`
IDRegex *string `mapstructure:"id_regex" cty:"id_regex" hcl:"id_regex"`
Latest *bool `mapstructure:"latest" cty:"latest" hcl:"latest"`
}
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 {
ID *string `mapstructure:"id" cty:"id" hcl:"id"`
Capabilities []string `mapstructure:"capabilities" cty:"capabilities" hcl:"capabilities"`
Created *string `mapstructure:"created" cty:"created" hcl:"created"`
CreatedBy *string `mapstructure:"created_by" cty:"created_by" hcl:"created_by"`
Deprecated *bool `mapstructure:"deprecated" cty:"deprecated" hcl:"deprecated"`
Description *string `mapstructure:"description" cty:"description" hcl:"description"`
EOL *string `mapstructure:"eol" cty:"eol" hcl:"eol"`
Expiry *string `mapstructure:"expiry" cty:"expiry" hcl:"expiry"`
IsPublic *bool `mapstructure:"is_public" cty:"is_public" hcl:"is_public"`
Label *string `mapstructure:"label" cty:"label" hcl:"label"`
Size *int `mapstructure:"size" cty:"size" hcl:"size"`
Type *string `mapstructure:"type" cty:"type" hcl:"type"`
Updated *string `mapstructure:"updated" cty:"updated" hcl:"updated"`
Vendor *string `mapstructure:"vendor" cty:"vendor" hcl:"vendor"`
}
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.