vultr

package
v0.0.0-...-42c00e3 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2020 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CustomOSID   = 159
	SnapshotOSID = 164
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Artifact

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

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
}

func (*Builder) Cancel

func (b *Builder) Cancel()

func (*Builder) Prepare

func (b *Builder) Prepare(raws ...interface{}) (warnings []string, err 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"`

	APIKey string `mapstructure:"api_key"`

	Description     string `mapstructure:"description"`
	RegionID        int    `mapstructure:"region_id"`
	RegionName      string `mapstructure:"region_name"`
	RegionCode      string `mapstructure:"region_code"`
	PlanID          int    `mapstructure:"plan_id"`
	PlanName        string `mapstructure:"plan_name"`
	OSID            int    `mapstructure:"os_id"`
	OSName          string `mapstructure:"os_name"`
	ScriptID        int    `mapstructure:"script_id"`
	SnapshotID      string `mapstructure:"snapshot_id"`
	SSHKey          string `mapstructure:"ssh_key_id"`
	SSHUsername     string `mapstructure:"ssh_username"`
	SSHPassword     string `mapstructure:"ssh_password"`
	ShutdownCommand string `mapstructure:"shutdown_command"`
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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