 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Overview ¶
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)
Index ¶
- Constants
- type Artifact
- type Box
- type Config
- type PostProcessor
- type Provider
- type Upload
- type VagrantCloudClient
- func (v VagrantCloudClient) Delete(path string) (*http.Response, error)
- func (v VagrantCloudClient) Get(path string) (*http.Response, error)
- func (v VagrantCloudClient) New(baseUrl string, token string) *VagrantCloudClient
- func (v VagrantCloudClient) Post(path string, body interface{}) (*http.Response, error)
- func (v VagrantCloudClient) Put(path string) (*http.Response, error)
- func (v VagrantCloudClient) Upload(path string, url string) (*http.Response, error)
 
- type VagrantCloudErrors
- type Version
Constants ¶
      View Source
      
  
    const BuilderId = "pearkes.post-processor.vagrant-cloud"
    
      View Source
      
  
const VAGRANT_CLOUD_URL = "https://vagrantcloud.com/api/v1"
    Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Artifact ¶
func NewArtifact ¶
type Config ¶
type Config struct {
	common.PackerConfig `mapstructure:",squash"`
	Tag                string `mapstructure:"box_tag"`
	Version            string `mapstructure:"version"`
	VersionDescription string `mapstructure:"version_description"`
	NoRelease          bool   `mapstructure:"no_release"`
	AccessToken     string `mapstructure:"access_token"`
	VagrantCloudUrl string `mapstructure:"vagrant_cloud_url"`
	// contains filtered or unexported fields
}
    type PostProcessor ¶
type PostProcessor struct {
	// contains filtered or unexported fields
}
    func (*PostProcessor) Cancel ¶
func (p *PostProcessor) Cancel()
Runs a cleanup if the post processor fails to upload
func (*PostProcessor) Configure ¶
func (p *PostProcessor) Configure(raws ...interface{}) error
type VagrantCloudClient ¶
type VagrantCloudClient struct {
	// The base URL of the API
	BaseURL string
	// Access token
	AccessToken string
	// contains filtered or unexported fields
}
    func (VagrantCloudClient) Delete ¶
func (v VagrantCloudClient) Delete(path string) (*http.Response, error)
func (VagrantCloudClient) Get ¶
func (v VagrantCloudClient) Get(path string) (*http.Response, error)
func (VagrantCloudClient) New ¶
func (v VagrantCloudClient) New(baseUrl string, token string) *VagrantCloudClient
func (VagrantCloudClient) Post ¶
func (v VagrantCloudClient) Post(path string, body interface{}) (*http.Response, error)
type VagrantCloudErrors ¶
func (VagrantCloudErrors) FormatErrors ¶
func (v VagrantCloudErrors) FormatErrors() string
 Click to show internal directories. 
   Click to hide internal directories.