Documentation
¶
Index ¶
- Constants
- func CreateGceImage(accountFile string, ui packer.Ui, project string, rawImageURL string, ...) (packer.Artifact, error)
- func DeleteFromBucket(accountFile string, ui packer.Ui, bucket string, gcsObjectName string) error
- func UploadToBucket(accountFile string, 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"`
Bucket string `mapstructure:"bucket"`
GCSObjectName string `mapstructure:"gcs_object_name"`
ImageDescription string `mapstructure:"image_description"`
ImageFamily string `mapstructure:"image_family"`
ImageLabels map[string]string `mapstructure:"image_labels"`
ImageName string `mapstructure:"image_name"`
ProjectId string `mapstructure:"project_id"`
AccountFile string `mapstructure:"account_file"`
KeepOriginalImage bool `mapstructure:"keep_input_artifact"`
SkipClean bool `mapstructure:"skip_clean"`
// 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.