packer-plugin-vmware/provisioner/scaffolding/provisioner.hcl2spec.go
2021-04-14 12:41:50 -04:00

31 lines
1.0 KiB
Go

// Code generated by "mapstructure-to-hcl2 -type Config"; DO NOT EDIT.
package scaffolding
import (
"github.com/hashicorp/hcl/v2/hcldec"
"github.com/zclconf/go-cty/cty"
)
// FlatConfig is an auto-generated flat version of Config.
// Where the contents of a field with a `mapstructure:,squash` tag are bubbled up.
type FlatConfig struct {
MockOption *string `mapstructure:"mock" cty:"mock" hcl:"mock"`
}
// FlatMapstructure returns a new FlatConfig.
// FlatConfig is an auto-generated flat version of Config.
// Where the contents a fields with a `mapstructure:,squash` tag are bubbled up.
func (*Config) FlatMapstructure() interface{ HCL2Spec() map[string]hcldec.Spec } {
return new(FlatConfig)
}
// HCL2Spec returns the hcl spec of a Config.
// This spec is used by HCL to read the fields of Config.
// The decoded values from this spec will then be applied to a FlatConfig.
func (*FlatConfig) HCL2Spec() map[string]hcldec.Spec {
s := map[string]hcldec.Spec{
"mock": &hcldec.AttrSpec{Name: "mock", Type: cty.String, Required: false},
}
return s
}