bsuvolume

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2019 License: MPL-2.0 Imports: 15 Imported by: 0

Documentation

Overview

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

Index

Constants

View Source
const BuilderId = "oapi.outscale.bsuvolume"

Variables

This section is empty.

Functions

This section is empty.

Types

type Artifact

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

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

	// Client connection for performing API stuff.
	Conn *oapi.Client
}

Artifact is an artifact implementation that contains built AMIs.

func (*Artifact) BuilderId

func (a *Artifact) BuilderId() string

func (*Artifact) Destroy

func (a *Artifact) Destroy() error

func (*Artifact) Files

func (*Artifact) Files() []string

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

type BlockDevice

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

type BsuVolumes

type BsuVolumes map[string][]string

map of region to list of volume IDs

type Builder

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

func (*Builder) Prepare

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

func (*Builder) Run

func (b *Builder) Run(ctx context.Context, ui packer.Ui, hook packer.Hook) (packer.Artifact, error)

type Config

type Config struct {
	common.PackerConfig    `mapstructure:",squash"`
	osccommon.AccessConfig `mapstructure:",squash"`
	osccommon.RunConfig    `mapstructure:",squash"`

	VolumeMappings []BlockDevice `mapstructure:"bsu_volumes"`
	// contains filtered or unexported fields
}

type EngineVarsTemplate

type EngineVarsTemplate struct {
	BuildRegion string
	SourceOMI   string
}

Jump to

Keyboard shortcuts

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