{"modulePath":"github.com/hashicorp/packer-plugin-cloudstack","version":"v1.0.2","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package cloudstack\n\n## Constants\n\n```go\nconst BuilderId = \"packer.cloudstack\"\n```\n\n## Types\n\n```go\ntype Artifact struct {\n\n\t// StateData should store data such as GeneratedData\n\t// to be shared with post-processors\n\tStateData map[string]interface{}\n\t// contains filtered or unexported fields\n}\n```\nArtifact represents a CloudStack template as the result of a Packer build.\n\n```go\nfunc (a *Artifact) BuilderId() string\n```\nBuilderId returns the builder ID.\n\n```go\nfunc (a *Artifact) Destroy() error\n```\nDestroy the CloudStack template represented by the artifact.\n\n```go\nfunc (a *Artifact) Files() []string\n```\nFiles returns the files represented by the artifact.\n\n```go\nfunc (a *Artifact) Id() string\n```\nId returns CloudStack template ID.\n\n```go\nfunc (a *Artifact) State(name string) interface{}\n```\nState returns specific details from the artifact.\n\n```go\nfunc (a *Artifact) String() string\n```\nString returns the string representation of the artifact.\n\n```go\ntype Builder struct {\n\t// contains filtered or unexported fields\n}\n```\nBuilder represents the CloudStack builder.\n\n```go\nfunc (b *Builder) ConfigSpec() hcldec.ObjectSpec\n```\n\n```go\nfunc (b *Builder) Prepare(raws ...interface{}) ([]string, []string, error)\n```\n\n```go\nfunc (b *Builder) Run(ctx context.Context, ui packersdk.Ui, hook packersdk.Hook) (packersdk.Artifact, error)\n```\nRun implements the packersdk.Builder interface.\n\n```go\ntype Config struct {\n\tcommon.PackerConfig    `mapstructure:\",squash\"`\n\tcommonsteps.HTTPConfig `mapstructure:\",squash\"`\n\tComm                   communicator.Config `mapstructure:\",squash\"`\n\n\t// The CloudStack API endpoint we will connect to. It can\n\t// also be specified via environment variable CLOUDSTACK_API_URL, if set.\n\tAPIURL string `mapstructure:\"api_url\" required:\"true\"`\n\t// The API key used to sign all API requests. It can also\n\t// be specified via environment variable CLOUDSTACK_API_KEY, if set.\n\tAPIKey string `mapstructure:\"api_key\" required:\"true\"`\n\t// The secret key used to sign all API requests. It\n\t// can also be specified via environment variable CLOUDSTACK_SECRET_KEY, if\n\t// set.\n\tSecretKey string `mapstructure:\"secret_key\" required:\"true\"`\n\t// The time duration to wait for async calls to\n\t// finish. Defaults to 30m.\n\tAsyncTimeout time.Duration `mapstructure:\"async_timeout\" required:\"false\"`\n\t// Some cloud providers only allow HTTP GET calls\n\t// to their CloudStack API. If using such a provider, you need to set this to\n\t// true in order for the provider to only make GET calls and no POST calls.\n\tHTTPGetOnly bool `mapstructure:\"http_get_only\" required:\"false\"`\n\t// Set to true to skip SSL verification.\n\t// Defaults to false.\n\tSSLNoVerify bool `mapstructure:\"ssl_no_verify\" required:\"false\"`\n\t// List of CIDR's that will have access to the new\n\t// instance. This is needed in order for any provisioners to be able to\n\t// connect to the instance. Defaults to [ \"0.0.0.0/0\" ]. Only required when\n\t// use_local_ip_address is false.\n\tCIDRList []string `mapstructure:\"cidr_list\" required:\"false\"`\n\t// If true a temporary security group\n\t// will be created which allows traffic towards the instance from the\n\t// cidr_list. This option will be ignored if security_groups is also\n\t// defined. Requires expunge set to true. Defaults to false.\n\tCreateSecurityGroup bool `mapstructure:\"create_security_group\" required:\"false\"`\n\t// The name or ID of the disk offering used for the\n\t// instance. This option is only available (and also required) when using\n\t// source_iso.\n\tDiskOffering string `mapstructure:\"disk_offering\" required:\"false\"`\n\t// The size (in GB) of the root disk of the new instance.\n\tDiskSize int64 `mapstructure:\"disk_size\" required:\"false\"`\n\t// If `true` make a call to the CloudStack API, after loading image to\n\t// cache, requesting to check and detach ISO file (if any) currently\n\t// attached to a virtual machine. Defaults to `false`. This option is only\n\t// available when using `source_iso`.\n\tEjectISO bool `mapstructure:\"eject_iso\"`\n\t// Configure the duration time to wait, making sure virtual machine is able\n\t// to finish installing OS before it ejects safely. Requires `eject_iso`\n\t// set to `true` and this option is only available when using `source_iso`.\n\tEjectISODelay time.Duration `mapstructure:\"eject_iso_delay\"`\n\t// Set to true to expunge the instance when it is\n\t// destroyed. Defaults to false.\n\tExpunge bool `mapstructure:\"expunge\" required:\"false\"`\n\t// The target hypervisor (e.g. XenServer, KVM) for\n\t// the new template. This option is required when using source_iso.\n\tHypervisor string `mapstructure:\"hypervisor\" required:\"false\"`\n\t// The name of the instance. Defaults to\n\t// \"packer-UUID\" where UUID is dynamically generated.\n\tInstanceName string `mapstructure:\"instance_name\" required:\"false\"`\n\t// The display name of the instance. Defaults to \"Created by Packer\".\n\tInstanceDisplayName string `mapstructure:\"instance_display_name\" required:\"false\"`\n\t// The name or ID of the network to connect the instance\n\t// to.\n\tNetwork string `mapstructure:\"network\" required:\"true\"`\n\t// The name or ID of the project to deploy the instance\n\t// to.\n\tProject string `mapstructure:\"project\" required:\"false\"`\n\t// The public IP address or it's ID used for\n\t// connecting any provisioners to. If not provided, a temporary public IP\n\t// address will be associated and released during the Packer run.\n\tPublicIPAddress string `mapstructure:\"public_ip_address\" required:\"false\"`\n\t// The fixed port you want to configure in the port\n\t// forwarding rule. Set this attribute if you do not want to use the a random\n\t// public port.\n\tPublicPort int `mapstructure:\"public_port\" required:\"false\"`\n\t// A list of security group IDs or\n\t// names to associate the instance with.\n\tSecurityGroups []string `mapstructure:\"security_groups\" required:\"false\"`\n\t// The name or ID of the service offering used\n\t// for the instance.\n\tServiceOffering string `mapstructure:\"service_offering\" required:\"true\"`\n\t// Set to true to prevent network\n\t// ACLs or firewall rules creation. Defaults to false.\n\tPreventFirewallChanges bool `mapstructure:\"prevent_firewall_changes\" required:\"false\"`\n\t// The name or ID of an ISO that will be mounted\n\t// before booting the instance. This option is mutually exclusive with\n\t// source_template. When using source_iso, both disk_offering and\n\t// hypervisor are required.\n\tSourceISO string `mapstructure:\"source_iso\" required:\"true\"`\n\t// The name or ID of the template used as base\n\t// template for the instance. This option is mutually exclusive with\n\t// source_iso.\n\tSourceTemplate string `mapstructure:\"source_template\" required:\"true\"`\n\t// The name of the temporary SSH key pair\n\t// to generate. By default, Packer generates a name that looks like\n\t// `packer_\u003cUUID\u003e`, where `\u003cUUID\u003e` is a 36 character unique identifier.\n\tTemporaryKeypairName string `mapstructure:\"temporary_keypair_name\" required:\"false\"`\n\t// Set to true to indicate that the\n\t// provisioners should connect to the local IP address of the instance.\n\tUseLocalIPAddress bool `mapstructure:\"use_local_ip_address\" required:\"false\"`\n\t// User data to launch with the instance. This is a\n\t// template engine; see \"User Data\" below for\n\t// more details. Packer will not automatically wait for a user script to\n\t// finish before shutting down the instance this must be handled in a\n\t// provisioner.\n\tUserData string `mapstructure:\"user_data\" required:\"false\"`\n\t// Path to a file that will be used for the user\n\t// data when launching the instance. This file will be parsed as a template\n\t// engine see User Data below for more\n\t// details.\n\tUserDataFile string `mapstructure:\"user_data_file\" required:\"false\"`\n\t// The name or ID of the zone where the instance will be\n\t// created.\n\tZone string `mapstructure:\"zone\" required:\"true\"`\n\t// The name of the new template. Defaults to\n\t// `packer-{{timestamp}}` where timestamp will be the current time.\n\tTemplateName string `mapstructure:\"template_name\" required:\"false\"`\n\t// The display text of the new template.\n\t// Defaults to the template_name.\n\tTemplateDisplayText string `mapstructure:\"template_display_text\" required:\"false\"`\n\t// The name or ID of the template OS for the new\n\t// template that will be created.\n\tTemplateOS string `mapstructure:\"template_os\" required:\"true\"`\n\t// Set to true to indicate that the template\n\t// is featured. Defaults to false.\n\tTemplateFeatured bool `mapstructure:\"template_featured\" required:\"false\"`\n\t// Set to true to indicate that the template\n\t// is available for all accounts. Defaults to false.\n\tTemplatePublic bool `mapstructure:\"template_public\" required:\"false\"`\n\t// Set to true to indicate the\n\t// template should be password enabled. Defaults to false.\n\tTemplatePasswordEnabled bool `mapstructure:\"template_password_enabled\" required:\"false\"`\n\t// Set to true to indicate the template\n\t// requires hardware-assisted virtualization. Defaults to false.\n\tTemplateRequiresHVM bool `mapstructure:\"template_requires_hvm\" required:\"false\"`\n\t// Set to true to indicate that the template\n\t// contains tools to support dynamic scaling of VM cpu/memory. Defaults to\n\t// false.\n\tTemplateScalable bool `mapstructure:\"template_scalable\" required:\"false\"`\n\t//\n\tTemplateTag string `mapstructure:\"template_tag\"`\n\n\tTags map[string]string `mapstructure:\"tags\"`\n\t// contains filtered or unexported fields\n}\n```\nConfig holds all the details needed to configure the builder.\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\nfunc (c *Config) Prepare(raws ...interface{}) error\n```\nNewConfig parses and validates the given config.\n\n```go\ntype FlatConfig struct {\n\tPackerBuildName           *string           `mapstructure:\"packer_build_name\" cty:\"packer_build_name\" hcl:\"packer_build_name\"`\n\tPackerBuilderType         *string           `mapstructure:\"packer_builder_type\" cty:\"packer_builder_type\" hcl:\"packer_builder_type\"`\n\tPackerCoreVersion         *string           `mapstructure:\"packer_core_version\" cty:\"packer_core_version\" hcl:\"packer_core_version\"`\n\tPackerDebug               *bool             `mapstructure:\"packer_debug\" cty:\"packer_debug\" hcl:\"packer_debug\"`\n\tPackerForce               *bool             `mapstructure:\"packer_force\" cty:\"packer_force\" hcl:\"packer_force\"`\n\tPackerOnError             *string           `mapstructure:\"packer_on_error\" cty:\"packer_on_error\" hcl:\"packer_on_error\"`\n\tPackerUserVars            map[string]string `mapstructure:\"packer_user_variables\" cty:\"packer_user_variables\" hcl:\"packer_user_variables\"`\n\tPackerSensitiveVars       []string          `mapstructure:\"packer_sensitive_variables\" cty:\"packer_sensitive_variables\" hcl:\"packer_sensitive_variables\"`\n\tHTTPDir                   *string           `mapstructure:\"http_directory\" cty:\"http_directory\" hcl:\"http_directory\"`\n\tHTTPContent               map[string]string `mapstructure:\"http_content\" cty:\"http_content\" hcl:\"http_content\"`\n\tHTTPPortMin               *int              `mapstructure:\"http_port_min\" cty:\"http_port_min\" hcl:\"http_port_min\"`\n\tHTTPPortMax               *int              `mapstructure:\"http_port_max\" cty:\"http_port_max\" hcl:\"http_port_max\"`\n\tHTTPAddress               *string           `mapstructure:\"http_bind_address\" cty:\"http_bind_address\" hcl:\"http_bind_address\"`\n\tHTTPInterface             *string           `mapstructure:\"http_interface\" undocumented:\"true\" cty:\"http_interface\" hcl:\"http_interface\"`\n\tType                      *string           `mapstructure:\"communicator\" cty:\"communicator\" hcl:\"communicator\"`\n\tPauseBeforeConnect        *string           `mapstructure:\"pause_before_connecting\" cty:\"pause_before_connecting\" hcl:\"pause_before_connecting\"`\n\tSSHHost                   *string           `mapstructure:\"ssh_host\" cty:\"ssh_host\" hcl:\"ssh_host\"`\n\tSSHPort                   *int              `mapstructure:\"ssh_port\" cty:\"ssh_port\" hcl:\"ssh_port\"`\n\tSSHUsername               *string           `mapstructure:\"ssh_username\" cty:\"ssh_username\" hcl:\"ssh_username\"`\n\tSSHPassword               *string           `mapstructure:\"ssh_password\" cty:\"ssh_password\" hcl:\"ssh_password\"`\n\tSSHKeyPairName            *string           `mapstructure:\"ssh_keypair_name\" undocumented:\"true\" cty:\"ssh_keypair_name\" hcl:\"ssh_keypair_name\"`\n\tSSHTemporaryKeyPairName   *string           `mapstructure:\"temporary_key_pair_name\" undocumented:\"true\" cty:\"temporary_key_pair_name\" hcl:\"temporary_key_pair_name\"`\n\tSSHTemporaryKeyPairType   *string           `mapstructure:\"temporary_key_pair_type\" cty:\"temporary_key_pair_type\" hcl:\"temporary_key_pair_type\"`\n\tSSHTemporaryKeyPairBits   *int              `mapstructure:\"temporary_key_pair_bits\" cty:\"temporary_key_pair_bits\" hcl:\"temporary_key_pair_bits\"`\n\tSSHCiphers                []string          `mapstructure:\"ssh_ciphers\" cty:\"ssh_ciphers\" hcl:\"ssh_ciphers\"`\n\tSSHClearAuthorizedKeys    *bool             `mapstructure:\"ssh_clear_authorized_keys\" cty:\"ssh_clear_authorized_keys\" hcl:\"ssh_clear_authorized_keys\"`\n\tSSHKEXAlgos               []string          `mapstructure:\"ssh_key_exchange_algorithms\" cty:\"ssh_key_exchange_algorithms\" hcl:\"ssh_key_exchange_algorithms\"`\n\tSSHPrivateKeyFile         *string           `mapstructure:\"ssh_private_key_file\" undocumented:\"true\" cty:\"ssh_private_key_file\" hcl:\"ssh_private_key_file\"`\n\tSSHCertificateFile        *string           `mapstructure:\"ssh_certificate_file\" cty:\"ssh_certificate_file\" hcl:\"ssh_certificate_file\"`\n\tSSHPty                    *bool             `mapstructure:\"ssh_pty\" cty:\"ssh_pty\" hcl:\"ssh_pty\"`\n\tSSHTimeout                *string           `mapstructure:\"ssh_timeout\" cty:\"ssh_timeout\" hcl:\"ssh_timeout\"`\n\tSSHWaitTimeout            *string           `mapstructure:\"ssh_wait_timeout\" undocumented:\"true\" cty:\"ssh_wait_timeout\" hcl:\"ssh_wait_timeout\"`\n\tSSHAgentAuth              *bool             `mapstructure:\"ssh_agent_auth\" undocumented:\"true\" cty:\"ssh_agent_auth\" hcl:\"ssh_agent_auth\"`\n\tSSHDisableAgentForwarding *bool             `mapstructure:\"ssh_disable_agent_forwarding\" cty:\"ssh_disable_agent_forwarding\" hcl:\"ssh_disable_agent_forwarding\"`\n\tSSHHandshakeAttempts      *int              `mapstructure:\"ssh_handshake_attempts\" cty:\"ssh_handshake_attempts\" hcl:\"ssh_handshake_attempts\"`\n\tSSHBastionHost            *string           `mapstructure:\"ssh_bastion_host\" cty:\"ssh_bastion_host\" hcl:\"ssh_bastion_host\"`\n\tSSHBastionPort            *int              `mapstructure:\"ssh_bastion_port\" cty:\"ssh_bastion_port\" hcl:\"ssh_bastion_port\"`\n\tSSHBastionAgentAuth       *bool             `mapstructure:\"ssh_bastion_agent_auth\" cty:\"ssh_bastion_agent_auth\" hcl:\"ssh_bastion_agent_auth\"`\n\tSSHBastionUsername        *string           `mapstructure:\"ssh_bastion_username\" cty:\"ssh_bastion_username\" hcl:\"ssh_bastion_username\"`\n\tSSHBastionPassword        *string           `mapstructure:\"ssh_bastion_password\" cty:\"ssh_bastion_password\" hcl:\"ssh_bastion_password\"`\n\tSSHBastionInteractive     *bool             `mapstructure:\"ssh_bastion_interactive\" cty:\"ssh_bastion_interactive\" hcl:\"ssh_bastion_interactive\"`\n\tSSHBastionPrivateKeyFile  *string           `mapstructure:\"ssh_bastion_private_key_file\" cty:\"ssh_bastion_private_key_file\" hcl:\"ssh_bastion_private_key_file\"`\n\tSSHBastionCertificateFile *string           `mapstructure:\"ssh_bastion_certificate_file\" cty:\"ssh_bastion_certificate_file\" hcl:\"ssh_bastion_certificate_file\"`\n\tSSHFileTransferMethod     *string           `mapstructure:\"ssh_file_transfer_method\" cty:\"ssh_file_transfer_method\" hcl:\"ssh_file_transfer_method\"`\n\tSSHProxyHost              *string           `mapstructure:\"ssh_proxy_host\" cty:\"ssh_proxy_host\" hcl:\"ssh_proxy_host\"`\n\tSSHProxyPort              *int              `mapstructure:\"ssh_proxy_port\" cty:\"ssh_proxy_port\" hcl:\"ssh_proxy_port\"`\n\tSSHProxyUsername          *string           `mapstructure:\"ssh_proxy_username\" cty:\"ssh_proxy_username\" hcl:\"ssh_proxy_username\"`\n\tSSHProxyPassword          *string           `mapstructure:\"ssh_proxy_password\" cty:\"ssh_proxy_password\" hcl:\"ssh_proxy_password\"`\n\tSSHKeepAliveInterval      *string           `mapstructure:\"ssh_keep_alive_interval\" cty:\"ssh_keep_alive_interval\" hcl:\"ssh_keep_alive_interval\"`\n\tSSHReadWriteTimeout       *string           `mapstructure:\"ssh_read_write_timeout\" cty:\"ssh_read_write_timeout\" hcl:\"ssh_read_write_timeout\"`\n\tSSHRemoteTunnels          []string          `mapstructure:\"ssh_remote_tunnels\" cty:\"ssh_remote_tunnels\" hcl:\"ssh_remote_tunnels\"`\n\tSSHLocalTunnels           []string          `mapstructure:\"ssh_local_tunnels\" cty:\"ssh_local_tunnels\" hcl:\"ssh_local_tunnels\"`\n\tSSHPublicKey              []byte            `mapstructure:\"ssh_public_key\" undocumented:\"true\" cty:\"ssh_public_key\" hcl:\"ssh_public_key\"`\n\tSSHPrivateKey             []byte            `mapstructure:\"ssh_private_key\" undocumented:\"true\" cty:\"ssh_private_key\" hcl:\"ssh_private_key\"`\n\tWinRMUser                 *string           `mapstructure:\"winrm_username\" cty:\"winrm_username\" hcl:\"winrm_username\"`\n\tWinRMPassword             *string           `mapstructure:\"winrm_password\" cty:\"winrm_password\" hcl:\"winrm_password\"`\n\tWinRMHost                 *string           `mapstructure:\"winrm_host\" cty:\"winrm_host\" hcl:\"winrm_host\"`\n\tWinRMNoProxy              *bool             `mapstructure:\"winrm_no_proxy\" cty:\"winrm_no_proxy\" hcl:\"winrm_no_proxy\"`\n\tWinRMPort                 *int              `mapstructure:\"winrm_port\" cty:\"winrm_port\" hcl:\"winrm_port\"`\n\tWinRMTimeout              *string           `mapstructure:\"winrm_timeout\" cty:\"winrm_timeout\" hcl:\"winrm_timeout\"`\n\tWinRMUseSSL               *bool             `mapstructure:\"winrm_use_ssl\" cty:\"winrm_use_ssl\" hcl:\"winrm_use_ssl\"`\n\tWinRMInsecure             *bool             `mapstructure:\"winrm_insecure\" cty:\"winrm_insecure\" hcl:\"winrm_insecure\"`\n\tWinRMUseNTLM              *bool             `mapstructure:\"winrm_use_ntlm\" cty:\"winrm_use_ntlm\" hcl:\"winrm_use_ntlm\"`\n\tAPIURL                    *string           `mapstructure:\"api_url\" required:\"true\" cty:\"api_url\" hcl:\"api_url\"`\n\tAPIKey                    *string           `mapstructure:\"api_key\" required:\"true\" cty:\"api_key\" hcl:\"api_key\"`\n\tSecretKey                 *string           `mapstructure:\"secret_key\" required:\"true\" cty:\"secret_key\" hcl:\"secret_key\"`\n\tAsyncTimeout              *string           `mapstructure:\"async_timeout\" required:\"false\" cty:\"async_timeout\" hcl:\"async_timeout\"`\n\tHTTPGetOnly               *bool             `mapstructure:\"http_get_only\" required:\"false\" cty:\"http_get_only\" hcl:\"http_get_only\"`\n\tSSLNoVerify               *bool             `mapstructure:\"ssl_no_verify\" required:\"false\" cty:\"ssl_no_verify\" hcl:\"ssl_no_verify\"`\n\tCIDRList                  []string          `mapstructure:\"cidr_list\" required:\"false\" cty:\"cidr_list\" hcl:\"cidr_list\"`\n\tCreateSecurityGroup       *bool             `mapstructure:\"create_security_group\" required:\"false\" cty:\"create_security_group\" hcl:\"create_security_group\"`\n\tDiskOffering              *string           `mapstructure:\"disk_offering\" required:\"false\" cty:\"disk_offering\" hcl:\"disk_offering\"`\n\tDiskSize                  *int64            `mapstructure:\"disk_size\" required:\"false\" cty:\"disk_size\" hcl:\"disk_size\"`\n\tEjectISO                  *bool             `mapstructure:\"eject_iso\" cty:\"eject_iso\" hcl:\"eject_iso\"`\n\tEjectISODelay             *string           `mapstructure:\"eject_iso_delay\" cty:\"eject_iso_delay\" hcl:\"eject_iso_delay\"`\n\tExpunge                   *bool             `mapstructure:\"expunge\" required:\"false\" cty:\"expunge\" hcl:\"expunge\"`\n\tHypervisor                *string           `mapstructure:\"hypervisor\" required:\"false\" cty:\"hypervisor\" hcl:\"hypervisor\"`\n\tInstanceName              *string           `mapstructure:\"instance_name\" required:\"false\" cty:\"instance_name\" hcl:\"instance_name\"`\n\tInstanceDisplayName       *string           `mapstructure:\"instance_display_name\" required:\"false\" cty:\"instance_display_name\" hcl:\"instance_display_name\"`\n\tNetwork                   *string           `mapstructure:\"network\" required:\"true\" cty:\"network\" hcl:\"network\"`\n\tProject                   *string           `mapstructure:\"project\" required:\"false\" cty:\"project\" hcl:\"project\"`\n\tPublicIPAddress           *string           `mapstructure:\"public_ip_address\" required:\"false\" cty:\"public_ip_address\" hcl:\"public_ip_address\"`\n\tPublicPort                *int              `mapstructure:\"public_port\" required:\"false\" cty:\"public_port\" hcl:\"public_port\"`\n\tSecurityGroups            []string          `mapstructure:\"security_groups\" required:\"false\" cty:\"security_groups\" hcl:\"security_groups\"`\n\tServiceOffering           *string           `mapstructure:\"service_offering\" required:\"true\" cty:\"service_offering\" hcl:\"service_offering\"`\n\tPreventFirewallChanges    *bool             `mapstructure:\"prevent_firewall_changes\" required:\"false\" cty:\"prevent_firewall_changes\" hcl:\"prevent_firewall_changes\"`\n\tSourceISO                 *string           `mapstructure:\"source_iso\" required:\"true\" cty:\"source_iso\" hcl:\"source_iso\"`\n\tSourceTemplate            *string           `mapstructure:\"source_template\" required:\"true\" cty:\"source_template\" hcl:\"source_template\"`\n\tTemporaryKeypairName      *string           `mapstructure:\"temporary_keypair_name\" required:\"false\" cty:\"temporary_keypair_name\" hcl:\"temporary_keypair_name\"`\n\tUseLocalIPAddress         *bool             `mapstructure:\"use_local_ip_address\" required:\"false\" cty:\"use_local_ip_address\" hcl:\"use_local_ip_address\"`\n\tUserData                  *string           `mapstructure:\"user_data\" required:\"false\" cty:\"user_data\" hcl:\"user_data\"`\n\tUserDataFile              *string           `mapstructure:\"user_data_file\" required:\"false\" cty:\"user_data_file\" hcl:\"user_data_file\"`\n\tZone                      *string           `mapstructure:\"zone\" required:\"true\" cty:\"zone\" hcl:\"zone\"`\n\tTemplateName              *string           `mapstructure:\"template_name\" required:\"false\" cty:\"template_name\" hcl:\"template_name\"`\n\tTemplateDisplayText       *string           `mapstructure:\"template_display_text\" required:\"false\" cty:\"template_display_text\" hcl:\"template_display_text\"`\n\tTemplateOS                *string           `mapstructure:\"template_os\" required:\"true\" cty:\"template_os\" hcl:\"template_os\"`\n\tTemplateFeatured          *bool             `mapstructure:\"template_featured\" required:\"false\" cty:\"template_featured\" hcl:\"template_featured\"`\n\tTemplatePublic            *bool             `mapstructure:\"template_public\" required:\"false\" cty:\"template_public\" hcl:\"template_public\"`\n\tTemplatePasswordEnabled   *bool             `mapstructure:\"template_password_enabled\" required:\"false\" cty:\"template_password_enabled\" hcl:\"template_password_enabled\"`\n\tTemplateRequiresHVM       *bool             `mapstructure:\"template_requires_hvm\" required:\"false\" cty:\"template_requires_hvm\" hcl:\"template_requires_hvm\"`\n\tTemplateScalable          *bool             `mapstructure:\"template_scalable\" required:\"false\" cty:\"template_scalable\" hcl:\"template_scalable\"`\n\tTemplateTag               *string           `mapstructure:\"template_tag\" cty:\"template_tag\" hcl:\"template_tag\"`\n\tTags                      map[string]string `mapstructure:\"tags\" cty:\"tags\" hcl:\"tags\"`\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","path":"github.com/hashicorp/packer-plugin-cloudstack/builder/cloudstack","name":"cloudstack","synopsis":"","isRedistributable":true}
