Documentation ¶
Index ¶
Constants ¶
View Source
const BuilderId = "hashicorp.post-processor.vagrant-registry"
View Source
const HCP_API_ADDRESS = "api.cloud.hashicorp.com:443"
View Source
const HCP_VAGRANT_REGISTRY_DIRECT_UPLOAD_LIMIT = 5368709120 // Upload limit is 5G
Variables ¶
View Source
var BOX_CREATE_TIMEOUT = "60s"
Functions ¶
This section is empty.
Types ¶
type Artifact ¶
func NewArtifact ¶
type Config ¶
type Config struct { common.PackerConfig `mapstructure:",squash"` Tag string `mapstructure:"box_tag"` BoxDescription string `mapstructure:"box_description"` BoxPrivate bool `mapstructure:"box_private"` Version string `mapstructure:"version"` VersionDescription string `mapstructure:"version_description"` NoRelease bool `mapstructure:"no_release"` Architecture string `mapstructure:"architecture"` DefaultArchitecture string `mapstructure:"default_architecture"` ClientID string `mapstructure:"client_id"` ClientSecret string `mapstructure:"client_secret"` BoxDownloadUrl string `mapstructure:"box_download_url"` NoDirectUpload bool `mapstructure:"no_direct_upload"` BoxChecksum string `mapstructure:"box_checksum"` // NOTE: These are used for development HcpApiAddress string `mapstructure:"hcp_api_address"` HcpAuthUrl string `mapstructure:"hcp_auth_url"` InsecureSkipTLSVerify bool `mapstructure:"insecure_skip_tls_verify"` // contains filtered or unexported fields }
type FlatConfig ¶
type FlatConfig struct { PackerBuildName *string `mapstructure:"packer_build_name" cty:"packer_build_name" hcl:"packer_build_name"` PackerBuilderType *string `mapstructure:"packer_builder_type" cty:"packer_builder_type" hcl:"packer_builder_type"` PackerCoreVersion *string `mapstructure:"packer_core_version" cty:"packer_core_version" hcl:"packer_core_version"` PackerDebug *bool `mapstructure:"packer_debug" cty:"packer_debug" hcl:"packer_debug"` PackerForce *bool `mapstructure:"packer_force" cty:"packer_force" hcl:"packer_force"` PackerOnError *string `mapstructure:"packer_on_error" cty:"packer_on_error" hcl:"packer_on_error"` PackerUserVars map[string]string `mapstructure:"packer_user_variables" cty:"packer_user_variables" hcl:"packer_user_variables"` PackerSensitiveVars []string `mapstructure:"packer_sensitive_variables" cty:"packer_sensitive_variables" hcl:"packer_sensitive_variables"` Tag *string `mapstructure:"box_tag" cty:"box_tag" hcl:"box_tag"` BoxDescription *string `mapstructure:"box_description" cty:"box_description" hcl:"box_description"` BoxPrivate *bool `mapstructure:"box_private" cty:"box_private" hcl:"box_private"` Version *string `mapstructure:"version" cty:"version" hcl:"version"` VersionDescription *string `mapstructure:"version_description" cty:"version_description" hcl:"version_description"` NoRelease *bool `mapstructure:"no_release" cty:"no_release" hcl:"no_release"` Architecture *string `mapstructure:"architecture" cty:"architecture" hcl:"architecture"` DefaultArchitecture *string `mapstructure:"default_architecture" cty:"default_architecture" hcl:"default_architecture"` ClientID *string `mapstructure:"client_id" cty:"client_id" hcl:"client_id"` ClientSecret *string `mapstructure:"client_secret" cty:"client_secret" hcl:"client_secret"` BoxDownloadUrl *string `mapstructure:"box_download_url" cty:"box_download_url" hcl:"box_download_url"` NoDirectUpload *bool `mapstructure:"no_direct_upload" cty:"no_direct_upload" hcl:"no_direct_upload"` BoxChecksum *string `mapstructure:"box_checksum" cty:"box_checksum" hcl:"box_checksum"` HcpApiAddress *string `mapstructure:"hcp_api_address" cty:"hcp_api_address" hcl:"hcp_api_address"` HcpAuthUrl *string `mapstructure:"hcp_auth_url" cty:"hcp_auth_url" hcl:"hcp_auth_url"` InsecureSkipTLSVerify *bool `mapstructure:"insecure_skip_tls_verify" cty:"insecure_skip_tls_verify" hcl:"insecure_skip_tls_verify"` }
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 ¶
func (p *PostProcessor) ConfigSpec() hcldec.ObjectSpec
func (*PostProcessor) Configure ¶
func (p *PostProcessor) Configure(raws ...interface{}) error
Click to show internal directories.
Click to hide internal directories.