// Code generated by "mapstructure-to-hcl2 -type MockBuilder,MockCommunicator,RemoteCmd,MockProvisioner,MockPostProcessor"; DO NOT EDIT. package packer import ( "github.com/hashicorp/hcl/v2/hcldec" "github.com/hashicorp/packer/packer-plugin-sdk/packer" "github.com/zclconf/go-cty/cty" ) // FlatMockBuilder is an auto-generated flat version of MockBuilder. // Where the contents of a field with a `mapstructure:,squash` tag are bubbled up. type FlatMockBuilder struct { ArtifactId *string `cty:"artifact_id" hcl:"artifact_id"` PrepareWarnings []string `cty:"prepare_warnings" hcl:"prepare_warnings"` RunErrResult *bool `cty:"run_err_result" hcl:"run_err_result"` RunNilResult *bool `cty:"run_nil_result" hcl:"run_nil_result"` PrepareCalled *bool `cty:"prepare_called" hcl:"prepare_called"` PrepareConfig []interface{} `cty:"prepare_config" hcl:"prepare_config"` RunCalled *bool `cty:"run_called" hcl:"run_called"` RunHook packer.Hook `cty:"run_hook" hcl:"run_hook"` RunUi packer.Ui `cty:"run_ui" hcl:"run_ui"` CancelCalled *bool `cty:"cancel_called" hcl:"cancel_called"` GeneratedVars []string `cty:"generated_vars" hcl:"generated_vars"` } // FlatMapstructure returns a new FlatMockBuilder. // FlatMockBuilder is an auto-generated flat version of MockBuilder. // Where the contents a fields with a `mapstructure:,squash` tag are bubbled up. func (*MockBuilder) FlatMapstructure() interface{ HCL2Spec() map[string]hcldec.Spec } { return new(FlatMockBuilder) } // HCL2Spec returns the hcl spec of a MockBuilder. // This spec is used by HCL to read the fields of MockBuilder. // The decoded values from this spec will then be applied to a FlatMockBuilder. func (*FlatMockBuilder) HCL2Spec() map[string]hcldec.Spec { s := map[string]hcldec.Spec{ "artifact_id": &hcldec.AttrSpec{Name: "artifact_id", Type: cty.String, Required: false}, "prepare_warnings": &hcldec.AttrSpec{Name: "prepare_warnings", Type: cty.List(cty.String), Required: false}, "run_err_result": &hcldec.AttrSpec{Name: "run_err_result", Type: cty.Bool, Required: false}, "run_nil_result": &hcldec.AttrSpec{Name: "run_nil_result", Type: cty.Bool, Required: false}, "prepare_called": &hcldec.AttrSpec{Name: "prepare_called", Type: cty.Bool, Required: false}, "prepare_config": &hcldec.AttrSpec{Name: "prepare_config", Type: cty.Bool, Required: false}, /* TODO(azr): could not find type */ "run_called": &hcldec.AttrSpec{Name: "run_called", Type: cty.Bool, Required: false}, "run_hook": &hcldec.AttrSpec{Name: "run_hook", Type: cty.Bool, Required: false}, /* TODO(azr): could not find type */ "run_ui": &hcldec.AttrSpec{Name: "run_ui", Type: cty.Bool, Required: false}, /* TODO(azr): could not find type */ "cancel_called": &hcldec.AttrSpec{Name: "cancel_called", Type: cty.Bool, Required: false}, "generated_vars": &hcldec.AttrSpec{Name: "generated_vars", Type: cty.List(cty.String), Required: false}, } return s } // FlatMockPostProcessor is an auto-generated flat version of MockPostProcessor. // Where the contents of a field with a `mapstructure:,squash` tag are bubbled up. type FlatMockPostProcessor struct { ArtifactId *string `cty:"artifact_id" hcl:"artifact_id"` Keep *bool `cty:"keep" hcl:"keep"` ForceOverride *bool `cty:"force_override" hcl:"force_override"` Error error `cty:"error" hcl:"error"` ConfigureCalled *bool `cty:"configure_called" hcl:"configure_called"` ConfigureConfigs []interface{} `cty:"configure_configs" hcl:"configure_configs"` ConfigureError error `cty:"configure_error" hcl:"configure_error"` PostProcessCalled *bool `cty:"post_process_called" hcl:"post_process_called"` PostProcessArtifact packer.Artifact `cty:"post_process_artifact" hcl:"post_process_artifact"` PostProcessUi packer.Ui `cty:"post_process_ui" hcl:"post_process_ui"` } // FlatMapstructure returns a new FlatMockPostProcessor. // FlatMockPostProcessor is an auto-generated flat version of MockPostProcessor. // Where the contents a fields with a `mapstructure:,squash` tag are bubbled up. func (*MockPostProcessor) FlatMapstructure() interface{ HCL2Spec() map[string]hcldec.Spec } { return new(FlatMockPostProcessor) } // HCL2Spec returns the hcl spec of a MockPostProcessor. // This spec is used by HCL to read the fields of MockPostProcessor. // The decoded values from this spec will then be applied to a FlatMockPostProcessor. func (*FlatMockPostProcessor) HCL2Spec() map[string]hcldec.Spec { s := map[string]hcldec.Spec{ "artifact_id": &hcldec.AttrSpec{Name: "artifact_id", Type: cty.String, Required: false}, "keep": &hcldec.AttrSpec{Name: "keep", Type: cty.Bool, Required: false}, "force_override": &hcldec.AttrSpec{Name: "force_override", Type: cty.Bool, Required: false}, "error": &hcldec.AttrSpec{Name: "error", Type: cty.Bool, Required: false}, /* TODO(azr): could not find type */ "configure_called": &hcldec.AttrSpec{Name: "configure_called", Type: cty.Bool, Required: false}, "configure_configs": &hcldec.AttrSpec{Name: "configure_configs", Type: cty.Bool, Required: false}, /* TODO(azr): could not find type */ "configure_error": &hcldec.AttrSpec{Name: "configure_error", Type: cty.Bool, Required: false}, /* TODO(azr): could not find type */ "post_process_called": &hcldec.AttrSpec{Name: "post_process_called", Type: cty.Bool, Required: false}, "post_process_artifact": &hcldec.AttrSpec{Name: "post_process_artifact", Type: cty.Bool, Required: false}, /* TODO(azr): could not find type */ "post_process_ui": &hcldec.AttrSpec{Name: "post_process_ui", Type: cty.Bool, Required: false}, /* TODO(azr): could not find type */ } return s } // FlatMockProvisioner is an auto-generated flat version of MockProvisioner. // Where the contents of a field with a `mapstructure:,squash` tag are bubbled up. type FlatMockProvisioner struct { PrepCalled *bool `cty:"prep_called" hcl:"prep_called"` PrepConfigs []interface{} `cty:"prep_configs" hcl:"prep_configs"` ProvCalled *bool `cty:"prov_called" hcl:"prov_called"` ProvRetried *bool `cty:"prov_retried" hcl:"prov_retried"` ProvCommunicator packer.Communicator `cty:"prov_communicator" hcl:"prov_communicator"` ProvUi packer.Ui `cty:"prov_ui" hcl:"prov_ui"` } // FlatMapstructure returns a new FlatMockProvisioner. // FlatMockProvisioner is an auto-generated flat version of MockProvisioner. // Where the contents a fields with a `mapstructure:,squash` tag are bubbled up. func (*MockProvisioner) FlatMapstructure() interface{ HCL2Spec() map[string]hcldec.Spec } { return new(FlatMockProvisioner) } // HCL2Spec returns the hcl spec of a MockProvisioner. // This spec is used by HCL to read the fields of MockProvisioner. // The decoded values from this spec will then be applied to a FlatMockProvisioner. func (*FlatMockProvisioner) HCL2Spec() map[string]hcldec.Spec { s := map[string]hcldec.Spec{ "prep_called": &hcldec.AttrSpec{Name: "prep_called", Type: cty.Bool, Required: false}, "prep_configs": &hcldec.AttrSpec{Name: "prep_configs", Type: cty.Bool, Required: false}, /* TODO(azr): could not find type */ "prov_called": &hcldec.AttrSpec{Name: "prov_called", Type: cty.Bool, Required: false}, "prov_retried": &hcldec.AttrSpec{Name: "prov_retried", Type: cty.Bool, Required: false}, "prov_communicator": &hcldec.AttrSpec{Name: "prov_communicator", Type: cty.Bool, Required: false}, /* TODO(azr): could not find type */ "prov_ui": &hcldec.AttrSpec{Name: "prov_ui", Type: cty.Bool, Required: false}, /* TODO(azr): could not find type */ } return s }