aliyun

package
v0.0.0-...-7564b5e Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2016 License: MIT Imports: 17 Imported by: 1

Documentation

Overview

The aliyun package contains a packer.Builder implementation that builds images for Aliyun Platform

Index

Constants

View Source
const BuilderId = "packer.aliyun"

The unique ID for this builder

Variables

This section is empty.

Functions

This section is empty.

Types

type Artifact

type Artifact struct {
	// contains filtered or unexported fields
}

Artifact represents an Aliyun image as the result of a Packer build.

func (*Artifact) BuilderId

func (*Artifact) BuilderId() string

BuilderId returns the builder Id.

func (*Artifact) Destroy

func (a *Artifact) Destroy() error

Destroy destroys the Aliyun image represented by the artifact.

func (*Artifact) Files

func (*Artifact) Files() []string

Files returns the files represented by the artifact.

func (*Artifact) Id

func (a *Artifact) Id() string

func (*Artifact) State

func (a *Artifact) State(name string) interface{}

func (*Artifact) String

func (a *Artifact) String() string

String returns the string representation of the artifact.

type Builder

type Builder struct {
	// contains filtered or unexported fields
}

func (*Builder) Cancel

func (b *Builder) Cancel()

func (*Builder) Prepare

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

func (*Builder) Run

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

type Config

type Config struct {
	common.PackerConfig `mapstructure:",squash"`
	Comm                communicator.Config `mapstructure:",squash"`

	AccessKeyId     string `mapstructure:"access_key_id"`
	AccessKeySecret string `mapstructure:"access_key_secret"`

	RegionId        aliyungo_common.Region `mapstructure:"region_id"`
	BaseImageId     string                 `mapstructure:"base_image_id"`
	InstanceType    string                 `mapstructure:"instance_type"`
	SecurityGroupId string                 `mapstructure:"security_group_id"`

	ImageName        string        `mapstructure:"image_name"`
	ImageDescription string        `mapstructure:"image_description"`
	InstanceName     string        `mapstructure:"instance_name"`
	StatusTimeout    time.Duration `mapstructure:"status_timeout"`
	// contains filtered or unexported fields
}

func NewConfig

func NewConfig(raws ...interface{}) (*Config, []string, error)

Jump to

Keyboard shortcuts

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