Documentation ¶
Index ¶
- Constants
- func FindOSImage(imageList []osi.OSImage, name, label, location string) (osi.OSImage, bool)
- func FindVmImage(imageList []vmi.VMImage, name, label string) (vmi.VMImage, bool)
- func GetImageNameRegexp(name string) *regexp.Regexp
- func GetLoggedClient(client management.Client) management.Client
- type Builder
- type Config
- type StepCreateImage
- type StepCreateService
- type StepCreateVm
- type StepPollStatus
- type StepSetProvisionInfrastructure
- type StepStopVm
- type StepUploadCertificate
- type StepValidate
Constants ¶
View Source
const BuilderId = "Azure.ServiceManagement.VMImage"
This is the common builder ID to all of these artifacts.
Variables ¶
This section is empty.
Functions ¶
func FindOSImage ¶
func FindVmImage ¶
func GetImageNameRegexp ¶
func GetLoggedClient ¶
func GetLoggedClient(client management.Client) management.Client
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
Builder implements packer.Builder and builds the actual Azure images.
type Config ¶
type Config struct { common.PackerConfig `mapstructure:",squash"` SubscriptionName string `mapstructure:"subscription_name"` PublishSettingsPath string `mapstructure:"publish_settings_path"` StorageAccount string `mapstructure:"storage_account"` StorageContainer string `mapstructure:"storage_account_container"` Location string `mapstructure:"location"` InstanceSize string `mapstructure:"instance_size"` DataDisks []interface{} `mapstructure:"data_disks"` UserImageLabel string `mapstructure:"user_image_label"` OSType string `mapstructure:"os_type"` OSImageLabel string `mapstructure:"os_image_label"` OSImageName string `mapstructure:"os_image_name"` RemoteSourceImageLink string `mapstructure:"remote_source_image_link"` ResizeOSVhdGB *int `mapstructure:"resize_os_vhd_gb"` ProvisionTimeoutInMinutes uint `mapstructure:"provision_timeout_in_minutes"` VNet string `mapstructure:"vnet"` Subnet string `mapstructure:"subnet"` UserName string `mapstructure:"username"` Comm communicator.Config `mapstructure:",squash"` // contains filtered or unexported fields }
type StepCreateImage ¶
type StepCreateImage struct { TmpServiceName string TmpVmName string UserImageLabel string UserImageName string RecommendedVMSize string }
func (*StepCreateImage) Cleanup ¶
func (s *StepCreateImage) Cleanup(state multistep.StateBag)
func (*StepCreateImage) Run ¶
func (s *StepCreateImage) Run(state multistep.StateBag) multistep.StepAction
type StepCreateService ¶
func (*StepCreateService) Cleanup ¶
func (s *StepCreateService) Cleanup(state multistep.StateBag)
func (*StepCreateService) Run ¶
func (s *StepCreateService) Run(state multistep.StateBag) multistep.StepAction
type StepCreateVm ¶
type StepCreateVm struct{}
func (*StepCreateVm) Cleanup ¶
func (*StepCreateVm) Cleanup(multistep.StateBag)
func (*StepCreateVm) Run ¶
func (*StepCreateVm) Run(state multistep.StateBag) multistep.StepAction
type StepPollStatus ¶
func (*StepPollStatus) Cleanup ¶
func (s *StepPollStatus) Cleanup(state multistep.StateBag)
func (*StepPollStatus) Run ¶
func (s *StepPollStatus) Run(state multistep.StateBag) multistep.StepAction
type StepSetProvisionInfrastructure ¶
type StepSetProvisionInfrastructure struct { VmName string ServiceName string StorageAccountName string TempContainerName string ProvisionTimeoutInMinutes uint // contains filtered or unexported fields }
func (*StepSetProvisionInfrastructure) Cleanup ¶
func (s *StepSetProvisionInfrastructure) Cleanup(state multistep.StateBag)
func (*StepSetProvisionInfrastructure) Run ¶
func (s *StepSetProvisionInfrastructure) Run(state multistep.StateBag) multistep.StepAction
type StepStopVm ¶
func (*StepStopVm) Cleanup ¶
func (s *StepStopVm) Cleanup(state multistep.StateBag)
func (*StepStopVm) Run ¶
func (s *StepStopVm) Run(state multistep.StateBag) multistep.StepAction
type StepUploadCertificate ¶
type StepUploadCertificate struct {
TmpServiceName string
}
func (*StepUploadCertificate) Cleanup ¶
func (s *StepUploadCertificate) Cleanup(state multistep.StateBag)
func (*StepUploadCertificate) Run ¶
func (s *StepUploadCertificate) Run(state multistep.StateBag) multistep.StepAction
type StepValidate ¶
type StepValidate struct{}
func (*StepValidate) Cleanup ¶
func (*StepValidate) Cleanup(multistep.StateBag)
func (*StepValidate) Run ¶
func (*StepValidate) Run(state multistep.StateBag) multistep.StepAction
Source Files ¶
Click to show internal directories.
Click to hide internal directories.