{"modulePath":"github.com/stackpointcloud/packer","version":"v0.10.1","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package vagrantcloud\n\nvagrant\\_cloud implements the packer.PostProcessor interface and adds a post-processor that uploads artifacts from the vagrant post-processor to Vagrant Cloud (vagrantcloud.com) or manages self hosted boxes on the Vagrant Cloud\n\n## Constants\n\n```go\nconst BuilderId = \"pearkes.post-processor.vagrant-cloud\"\n```\n\n```go\nconst VAGRANT_CLOUD_URL = \"https://vagrantcloud.com/api/v1\"\n```\n\n## Types\n\n```go\ntype Artifact struct {\n\tTag      string\n\tProvider string\n}\n```\n\n```go\nfunc NewArtifact(provider, tag string) *Artifact\n```\n\n```go\nfunc (*Artifact) BuilderId() string\n```\n\n```go\nfunc (a *Artifact) Destroy() error\n```\n\n```go\nfunc (a *Artifact) Files() []string\n```\n\n```go\nfunc (a *Artifact) Id() string\n```\n\n```go\nfunc (*Artifact) State(name string) interface{}\n```\n\n```go\nfunc (a *Artifact) String() string\n```\n\n```go\ntype Box struct {\n\tTag      string     `json:\"tag\"`\n\tVersions []*Version `json:\"versions\"`\n}\n```\n\n```go\nfunc (b *Box) HasVersion(version string) (bool, *Version)\n```\n\n```go\ntype Config struct {\n\tcommon.PackerConfig `mapstructure:\",squash\"`\n\n\tTag                string `mapstructure:\"box_tag\"`\n\tVersion            string `mapstructure:\"version\"`\n\tVersionDescription string `mapstructure:\"version_description\"`\n\tNoRelease          bool   `mapstructure:\"no_release\"`\n\n\tAccessToken     string `mapstructure:\"access_token\"`\n\tVagrantCloudUrl string `mapstructure:\"vagrant_cloud_url\"`\n\n\tBoxDownloadUrl string `mapstructure:\"box_download_url\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\ntype PostProcessor struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (p *PostProcessor) Cancel()\n```\nRuns a cleanup if the post processor fails to upload\n\n```go\nfunc (p *PostProcessor) Configure(raws ...interface{}) error\n```\n\n```go\nfunc (p *PostProcessor) PostProcess(ui packer.Ui, artifact packer.Artifact) (packer.Artifact, bool, error)\n```\n\n```go\ntype Provider struct {\n\tName        string `json:\"name\"`\n\tUrl         string `json:\"url,omitempty\"`\n\tHostedToken string `json:\"hosted_token,omitempty\"`\n\tUploadUrl   string `json:\"upload_url,omitempty\"`\n}\n```\n\n```go\ntype Upload struct {\n\tToken      string `json:\"token\"`\n\tUploadPath string `json:\"upload_path\"`\n}\n```\n\n```go\ntype VagrantCloudClient struct {\n\n\t// The base URL of the API\n\tBaseURL string\n\n\t// Access token\n\tAccessToken string\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (v VagrantCloudClient) Delete(path string) (*http.Response, error)\n```\n\n```go\nfunc (v VagrantCloudClient) Get(path string) (*http.Response, error)\n```\n\n```go\nfunc (v VagrantCloudClient) New(baseUrl string, token string) *VagrantCloudClient\n```\n\n```go\nfunc (v VagrantCloudClient) Post(path string, body interface{}) (*http.Response, error)\n```\n\n```go\nfunc (v VagrantCloudClient) Put(path string) (*http.Response, error)\n```\n\n```go\nfunc (v VagrantCloudClient) Upload(path string, url string) (*http.Response, error)\n```\n\n```go\ntype VagrantCloudErrors struct {\n\tErrors map[string][]string `json:\"errors\"`\n}\n```\n\n```go\nfunc (v VagrantCloudErrors) FormatErrors() string\n```\n\n```go\ntype Version struct {\n\tVersion     string `json:\"version\"`\n\tDescription string `json:\"description,omitempty\"`\n}\n```\n\n","path":"github.com/stackpointcloud/packer/post-processor/vagrant-cloud","name":"vagrantcloud","synopsis":"vagrant_cloud implements the packer.PostProcessor interface and adds a post-processor that uploads artifacts from the vagrant post-processor to Vagrant Cloud (vagrantcloud.com) or manages self hosted boxes on the Vagrant Cloud","isRedistributable":true}
