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"`
DatasourceClientConfig `mapstructure:",squash"`
ksyun.KmiFilterOptions `mapstructure:",squash"`
// contains filtered or unexported fields
}
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 DatasourceClientConfig ¶
type DatasourceClientConfig struct {
ksyun.ClientConfig `mapstructure:",squash"`
// contains filtered or unexported fields
}
func (*DatasourceClientConfig) KecClient ¶
func (c *DatasourceClientConfig) KecClient() *kec.Kec
type DatasourceOutput ¶
type DatasourceOutput struct {
// The ID of the image.
ID string `mapstructure:"id"`
// The name of the image.
Name string `mapstructure:"name"`
// The date of creation of the image.
CreationDate string `mapstructure:"creation_date"`
Platform string `mapstructure:"platform"`
ImageSource string `mapstructure:"image_source"`
}
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"`
KsyunAccessKey *string `mapstructure:"access_key" required:"true" cty:"access_key" hcl:"access_key"`
KsyunSecretKey *string `mapstructure:"secret_key" required:"true" cty:"secret_key" hcl:"secret_key"`
KsyunRegion *string `mapstructure:"region" required:"true" cty:"region" hcl:"region"`
MostRecent *bool `mapstructure:"most_recent" cty:"most_recent" hcl:"most_recent"`
ImageSource *string `mapstructure:"image_source" cty:"image_source" hcl:"image_source"`
NameRegex *string `mapstructure:"name_regex" cty:"name_regex" hcl:"name_regex"`
Platform *string `mapstructure:"platform" cty:"platform" hcl:"platform"`
}
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"`
Name *string `mapstructure:"name" cty:"name" hcl:"name"`
CreationDate *string `mapstructure:"creation_date" cty:"creation_date" hcl:"creation_date"`
Platform *string `mapstructure:"platform" cty:"platform" hcl:"platform"`
ImageSource *string `mapstructure:"image_source" cty:"image_source" hcl:"image_source"`
}
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.