linode

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: May 15, 2019 License: MPL-2.0 Imports: 23 Imported by: 0 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 linode package contains a packer.Builder implementation that builds Linode images.

Index

Constants

View Source
const BuilderID = "packer.linode"

The unique ID for this builder.

Variables

This section is empty.

Functions

This section is empty.

Types

type Artifact

type Artifact struct {
	ImageID    string
	ImageLabel string

	Driver *linodego.Client
}

func (Artifact) BuilderId

func (a Artifact) BuilderId() string

func (Artifact) Destroy

func (a Artifact) Destroy() error

func (Artifact) Files

func (a 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 Builder

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

Builder represents a Packer Builder.

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) (ret packer.Artifact, err error)

type Config

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

	Comm communicator.Config `mapstructure:",squash"`

	PersonalAccessToken string `mapstructure:"linode_token"`

	Region       string   `mapstructure:"region"`
	InstanceType string   `mapstructure:"instance_type"`
	Label        string   `mapstructure:"instance_label"`
	Tags         []string `mapstructure:"instance_tags"`
	Image        string   `mapstructure:"image"`
	SwapSize     int      `mapstructure:"swap_size"`
	RootPass     string   `mapstructure:"root_pass"`
	RootSSHKey   string   `mapstructure:"root_ssh_key"`
	ImageLabel   string   `mapstructure:"image_label"`
	Description  string   `mapstructure:"image_description"`

	RawStateTimeout string `mapstructure:"state_timeout"`
	// contains filtered or unexported fields
}

func NewConfig

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

type StepCreateSSHKey

type StepCreateSSHKey struct {
	Debug        bool
	DebugKeyPath string
}

StepCreateSSHKey represents a Packer build step that generates SSH key pairs.

func (*StepCreateSSHKey) Cleanup

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

Nothing to clean up. SSH keys are associated with a single Linode instance.

func (*StepCreateSSHKey) Run

Run executes the Packer build step that generates SSH key pairs. The key pairs are added to the ssh config

Jump to

Keyboard shortcuts

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