Documentation ¶
Overview ¶
vagrant_cloud implements the packer.PostProcessor interface and adds a post-processor that uploads artifacts from the vagrant post-processor and vagrant builder to Vagrant Cloud (vagrantcloud.com) or manages self hosted boxes on the Vagrant Cloud
Code generated by "mapstructure-to-hcl2 -type Config"; DO NOT EDIT.
Index ¶
- Constants
- type Artifact
- type Box
- type Config
- type FlatConfig
- 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, InsecureSkipTLSVerify bool) (*VagrantCloudClient, error)
- 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)
- func (v *VagrantCloudClient) ValidateAuthentication() 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"` InsecureSkipTLSVerify bool `mapstructure:"insecure_skip_tls_verify"` BoxDownloadUrl string `mapstructure:"box_download_url"` // contains filtered or unexported fields }
func (*Config) FlatMapstructure ¶ added in v1.4.5
FlatMapstructure 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.
type FlatConfig ¶ added in v1.4.5
type FlatConfig struct { PackerBuildName *string `mapstructure:"packer_build_name" cty:"packer_build_name"` PackerBuilderType *string `mapstructure:"packer_builder_type" cty:"packer_builder_type"` PackerDebug *bool `mapstructure:"packer_debug" cty:"packer_debug"` PackerForce *bool `mapstructure:"packer_force" cty:"packer_force"` PackerOnError *string `mapstructure:"packer_on_error" cty:"packer_on_error"` PackerUserVars map[string]string `mapstructure:"packer_user_variables" cty:"packer_user_variables"` PackerSensitiveVars []string `mapstructure:"packer_sensitive_variables" cty:"packer_sensitive_variables"` Tag *string `mapstructure:"box_tag" cty:"box_tag"` Version *string `mapstructure:"version" cty:"version"` VersionDescription *string `mapstructure:"version_description" cty:"version_description"` NoRelease *bool `mapstructure:"no_release" cty:"no_release"` AccessToken *string `mapstructure:"access_token" cty:"access_token"` VagrantCloudUrl *string `mapstructure:"vagrant_cloud_url" cty:"vagrant_cloud_url"` InsecureSkipTLSVerify *bool `mapstructure:"insecure_skip_tls_verify" cty:"insecure_skip_tls_verify"` BoxDownloadUrl *string `mapstructure:"box_download_url" cty:"box_download_url"` }
FlatConfig is an auto-generated flat version of Config. Where the contents of a field with a `mapstructure:,squash` tag are bubbled up.
type PostProcessor ¶
type PostProcessor struct {
// contains filtered or unexported fields
}
func (*PostProcessor) ConfigSpec ¶ added in v1.5.0
func (p *PostProcessor) ConfigSpec() hcldec.ObjectSpec
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, InsecureSkipTLSVerify bool) (*VagrantCloudClient, error)
func (*VagrantCloudClient) Post ¶
func (v *VagrantCloudClient) Post(path string, body interface{}) (*http.Response, error)
func (*VagrantCloudClient) Put ¶
func (v *VagrantCloudClient) Put(path string) (*http.Response, error)
func (*VagrantCloudClient) ValidateAuthentication ¶ added in v1.3.2
func (v *VagrantCloudClient) ValidateAuthentication() error
type VagrantCloudErrors ¶
func (VagrantCloudErrors) FormatErrors ¶
func (v VagrantCloudErrors) FormatErrors() string
Click to show internal directories.
Click to hide internal directories.