Documentation ¶
Index ¶
Constants ¶
View Source
const ( BuilderId = "packer.post-processor.alicloud-import" OSSSuffix = "oss-" RAWFileFormat = "raw" VHDFileFormat = "vhd" BUSINESSINFO = "packer" AliyunECSImageImportDefaultRolePolicy = `` /* 202-byte string literal not displayed */ )
Variables ¶
This section is empty.
Functions ¶
func GetECSRegion ¶
func GetOSSRegion ¶
Types ¶
type Config ¶
type Config struct { common.PackerConfig `mapstructure:",squash"` packerecs.Config `mapstructure:",squash"` // Variables specific to this post processor OSSBucket string `mapstructure:"oss_bucket_name"` OSSKey string `mapstructure:"oss_key_name"` SkipClean bool `mapstructure:"skip_clean"` Tags map[string]string `mapstructure:"tags"` AlicloudImageName string `mapstructure:"image_name"` AlicloudImageVersion string `mapstructure:"image_version"` AlicloudImageDescription string `mapstructure:"image_description"` AlicloudImageDestinationRegions []string `mapstructure:"image_copy_regions"` OSType string `mapstructure:"image_os_type"` Platform string `mapstructure:"image_platform"` Architecture string `mapstructure:"image_architecture"` Size string `mapstructure:"image_system_size"` Format string `mapstructure:"format"` AlicloudImageForceDelete bool `mapstructure:"image_force_delete"` // contains filtered or unexported fields }
Configuration of this post processor
type PostProcessor ¶
type PostProcessor struct { DiskDeviceMapping []ecs.DiskDeviceMapping // contains filtered or unexported fields }
func (*PostProcessor) Configure ¶
func (p *PostProcessor) Configure(raws ...interface{}) error
Entry point for configuration parsing when we've defined
Click to show internal directories.
Click to hide internal directories.