{"modulePath":"github.com/joomcode/packer-plugin-external","version":"v0.0.3","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package json\n\n## Types\n\n```go\ntype Config struct {\n\tProgram    []string          `mapstructure:\"program\"`\n\tWorkingDir string            `mapstructure:\"working_dir\"`\n\tQuery      map[string]string `mapstructure:\"query\"`\n}\n```\n\n```go\nfunc (*Config) FlatMapstructure() interface{ HCL2Spec() map[string]hcldec.Spec }\n```\nFlatMapstructure 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.\n\n```go\ntype Datasource struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (d *Datasource) ConfigSpec() hcldec.ObjectSpec\n```\n\n```go\nfunc (d *Datasource) Configure(raws ...interface{}) error\n```\n\n```go\nfunc (d *Datasource) Execute() (cty.Value, error)\n```\n\n```go\nfunc (d *Datasource) OutputSpec() hcldec.ObjectSpec\n```\n\n```go\ntype DatasourceOutput struct {\n\tResult map[string]string `mapstructure:\"result\"`\n}\n```\n\n```go\nfunc (*DatasourceOutput) FlatMapstructure() interface{ HCL2Spec() map[string]hcldec.Spec }\n```\nFlatMapstructure 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.\n\n```go\ntype FlatConfig struct {\n\tProgram    []string          `mapstructure:\"program\" cty:\"program\" hcl:\"program\"`\n\tWorkingDir *string           `mapstructure:\"working_dir\" cty:\"working_dir\" hcl:\"working_dir\"`\n\tQuery      map[string]string `mapstructure:\"query\" cty:\"query\" hcl:\"query\"`\n}\n```\nFlatConfig is an auto-generated flat version of Config. Where the contents of a field with a \\`mapstructure:,squash\\` tag are bubbled up.\n\n```go\nfunc (*FlatConfig) HCL2Spec() map[string]hcldec.Spec\n```\nHCL2Spec 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.\n\n```go\ntype FlatDatasourceOutput struct {\n\tResult map[string]string `mapstructure:\"result\" cty:\"result\" hcl:\"result\"`\n}\n```\nFlatDatasourceOutput is an auto-generated flat version of DatasourceOutput. Where the contents of a field with a \\`mapstructure:,squash\\` tag are bubbled up.\n\n```go\nfunc (*FlatDatasourceOutput) HCL2Spec() map[string]hcldec.Spec\n```\nHCL2Spec 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.\n\n","path":"github.com/joomcode/packer-plugin-external/datasource/json","name":"json","synopsis":"","isRedistributable":true}
