{"modulePath":"github.com/mitchellh/packer","version":"v1.3.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\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) Cancel()\n```\nCancel the step runner.\n\n```go\nfunc (b *Builder) Prepare(raws ...interface{}) ([]string, error)\n```\nPrepare implements the packer.Builder interface.\n\n```go\nfunc (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packer.Artifact, error)\n```\nRun implements the packer.Builder interface.\n\n```go\ntype Config struct {\n\tcommon.PackerConfig `mapstructure:\",squash\"`\n\tcommon.HTTPConfig   `mapstructure:\",squash\"`\n\tComm                communicator.Config `mapstructure:\",squash\"`\n\n\tAPIURL       string        `mapstructure:\"api_url\"`\n\tAPIKey       string        `mapstructure:\"api_key\"`\n\tSecretKey    string        `mapstructure:\"secret_key\"`\n\tAsyncTimeout time.Duration `mapstructure:\"async_timeout\"`\n\tHTTPGetOnly  bool          `mapstructure:\"http_get_only\"`\n\tSSLNoVerify  bool          `mapstructure:\"ssl_no_verify\"`\n\n\tCIDRList               []string `mapstructure:\"cidr_list\"`\n\tCreateSecurityGroup    bool     `mapstructure:\"create_security_group\"`\n\tDiskOffering           string   `mapstructure:\"disk_offering\"`\n\tDiskSize               int64    `mapstructure:\"disk_size\"`\n\tExpunge                bool     `mapstructure:\"expunge\"`\n\tHypervisor             string   `mapstructure:\"hypervisor\"`\n\tInstanceName           string   `mapstructure:\"instance_name\"`\n\tNetwork                string   `mapstructure:\"network\"`\n\tProject                string   `mapstructure:\"project\"`\n\tPublicIPAddress        string   `mapstructure:\"public_ip_address\"`\n\tPublicPort             int      `mapstructure:\"public_port\"`\n\tSecurityGroups         []string `mapstructure:\"security_groups\"`\n\tServiceOffering        string   `mapstructure:\"service_offering\"`\n\tPreventFirewallChanges bool     `mapstructure:\"prevent_firewall_changes\"`\n\tSourceISO              string   `mapstructure:\"source_iso\"`\n\tSourceTemplate         string   `mapstructure:\"source_template\"`\n\tTemporaryKeypairName   string   `mapstructure:\"temporary_keypair_name\"`\n\tUseLocalIPAddress      bool     `mapstructure:\"use_local_ip_address\"`\n\tUserData               string   `mapstructure:\"user_data\"`\n\tUserDataFile           string   `mapstructure:\"user_data_file\"`\n\tZone                   string   `mapstructure:\"zone\"`\n\n\tTemplateName            string `mapstructure:\"template_name\"`\n\tTemplateDisplayText     string `mapstructure:\"template_display_text\"`\n\tTemplateOS              string `mapstructure:\"template_os\"`\n\tTemplateFeatured        bool   `mapstructure:\"template_featured\"`\n\tTemplatePublic          bool   `mapstructure:\"template_public\"`\n\tTemplatePasswordEnabled bool   `mapstructure:\"template_password_enabled\"`\n\tTemplateRequiresHVM     bool   `mapstructure:\"template_requires_hvm\"`\n\tTemplateScalable        bool   `mapstructure:\"template_scalable\"`\n\tTemplateTag             string `mapstructure:\"template_tag\"`\n\t// contains filtered or unexported fields\n}\n```\nConfig holds all the details needed to configure the builder.\n\n```go\nfunc NewConfig(raws ...interface{}) (*Config, error)\n```\nNewConfig parses and validates the given config.\n\n","path":"github.com/mitchellh/packer/builder/cloudstack","name":"cloudstack","synopsis":"","isRedistributable":true}
