ebsvolume

package
v1.2.5-slim Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2018 License: MPL-2.0 Imports: 13 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

The ebsvolume package contains a packer.Builder implementation that builds EBS volumes for Amazon EC2 using an ephemeral instance,

Index

Constants

View Source
const BuilderId = "mitchellh.amazon.ebsvolume"

Variables

This section is empty.

Functions

This section is empty.

Types

type Artifact added in v0.12.1

type Artifact struct {
	// A map of regions to EBS Volume IDs.
	Volumes EbsVolumes

	// BuilderId is the unique ID for the builder that created this AMI
	BuilderIdValue string

	// EC2 connection for performing API stuff.
	Conn *ec2.EC2
}

Artifact is an artifact implementation that contains built AMIs.

func (*Artifact) BuilderId added in v0.12.1

func (a *Artifact) BuilderId() string

func (*Artifact) Destroy added in v0.12.1

func (a *Artifact) Destroy() error

func (*Artifact) Files added in v0.12.1

func (*Artifact) Files() []string

func (*Artifact) Id added in v0.12.1

func (a *Artifact) Id() string

func (*Artifact) State added in v0.12.1

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

func (*Artifact) String added in v0.12.1

func (a *Artifact) String() string

type BlockDevice

type BlockDevice struct {
	awscommon.BlockDevice `mapstructure:"-,squash"`
	Tags                  awscommon.TagMap `mapstructure:"tags"`
}

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"`
	awscommon.AccessConfig `mapstructure:",squash"`
	awscommon.RunConfig    `mapstructure:",squash"`

	VolumeMappings     []BlockDevice `mapstructure:"ebs_volumes"`
	AMIENASupport      bool          `mapstructure:"ena_support"`
	AMISriovNetSupport bool          `mapstructure:"sriov_support"`
	// contains filtered or unexported fields
}

type EbsVolumes added in v0.12.1

type EbsVolumes map[string][]string

map of region to list of volume IDs

Jump to

Keyboard shortcuts

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