azure

package
v0.0.0-...-48ffce4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 24, 2017 License: MIT Imports: 35 Imported by: 0

Documentation

Index

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 FindOSImage(imageList []osi.OSImage, name, label, location string) (osi.OSImage, bool)

func FindVmImage

func FindVmImage(imageList []vmi.VMImage, name, label string) (vmi.VMImage, bool)

func GetImageNameRegexp

func GetImageNameRegexp(name string) *regexp.Regexp

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.

func (*Builder) Cancel

func (b *Builder) Cancel()

Cancel.

func (*Builder) Prepare

func (b *Builder) Prepare(raws ...interface{}) ([]string, error)

Prepare processes the build configuration parameters.

func (*Builder) Run

func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packer.Artifact, error)

Run executes a Packer build and returns a packer.Artifact representing a Azure VM image.

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

type StepCreateService

type StepCreateService struct {
	Location       string
	TmpServiceName string
}

func (*StepCreateService) Cleanup

func (s *StepCreateService) Cleanup(state multistep.StateBag)

func (*StepCreateService) Run

type StepCreateVm

type StepCreateVm struct{}

func (*StepCreateVm) Cleanup

func (*StepCreateVm) Cleanup(multistep.StateBag)

func (*StepCreateVm) Run

type StepPollStatus

type StepPollStatus struct {
	TmpServiceName string
	TmpVmName      string
	OSType         string
}

func (*StepPollStatus) Cleanup

func (s *StepPollStatus) Cleanup(state multistep.StateBag)

func (*StepPollStatus) Run

type StepSetProvisionInfrastructure

type StepSetProvisionInfrastructure struct {
	VmName                    string
	ServiceName               string
	StorageAccountName        string
	TempContainerName         string
	ProvisionTimeoutInMinutes uint
	// contains filtered or unexported fields
}

func (*StepSetProvisionInfrastructure) Cleanup

func (*StepSetProvisionInfrastructure) Run

type StepStopVm

type StepStopVm struct {
	TmpVmName      string
	TmpServiceName string
}

func (*StepStopVm) Cleanup

func (s *StepStopVm) Cleanup(state multistep.StateBag)

func (*StepStopVm) Run

type StepUploadCertificate

type StepUploadCertificate struct {
	TmpServiceName string
}

func (*StepUploadCertificate) Cleanup

func (s *StepUploadCertificate) Cleanup(state multistep.StateBag)

func (*StepUploadCertificate) Run

type StepValidate

type StepValidate struct{}

func (*StepValidate) Cleanup

func (*StepValidate) Cleanup(multistep.StateBag)

func (*StepValidate) Run

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL