Documentation
¶
Index ¶
- Constants
- func CreateGceImage(client *http.Client, ui packer.Ui, project string, rawImageURL string, ...) (packer.Artifact, error)
- func DeleteFromBucket(client *http.Client, ui packer.Ui, bucket string, gcsObjectName string) error
- func UploadToBucket(client *http.Client, ui packer.Ui, artifact packer.Artifact, bucket string, ...) (string, error)
- type Artifact
- type Config
- type PostProcessor
Constants ¶
View Source
const BuilderId = "packer.post-processor.googlecompute-import"
Variables ¶
This section is empty.
Functions ¶
func CreateGceImage ¶
func DeleteFromBucket ¶
Types ¶
type Config ¶
type Config struct {
common.PackerConfig `mapstructure:",squash"`
AccountFile string `mapstructure:"account_file"`
ProjectId string `mapstructure:"project_id"`
Bucket string `mapstructure:"bucket"`
GCSObjectName string `mapstructure:"gcs_object_name"`
ImageDescription string `mapstructure:"image_description"`
ImageFamily string `mapstructure:"image_family"`
ImageGuestOsFeatures []string `mapstructure:"image_guest_os_features"`
ImageLabels map[string]string `mapstructure:"image_labels"`
ImageName string `mapstructure:"image_name"`
SkipClean bool `mapstructure:"skip_clean"`
Account googlecompute.AccountFile
// contains filtered or unexported fields
}
type PostProcessor ¶
type PostProcessor struct {
// contains filtered or unexported fields
}
func (*PostProcessor) Configure ¶
func (p *PostProcessor) Configure(raws ...interface{}) error
Click to show internal directories.
Click to hide internal directories.