vultr

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2019 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CustomOSID   = 159
	SnapshotOSID = 164
)

Special OS IDs

View Source
const (
	StartupScriptDelaySec = 20
	ServerDestroyWaitMin  = 3
)

Delays

View Source
const (
	ShutdownDelaySec = 10
	ShutdownWaitSec  = 10
)

shutdown delays

Variables

This section is empty.

Functions

This section is empty.

Types

type Artifact

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

Artifact ...

func (*Artifact) BuilderId

func (a *Artifact) BuilderId() string

BuilderId ...

func (*Artifact) Destroy

func (a *Artifact) Destroy() error

Destroy ...

func (*Artifact) Files

func (a *Artifact) Files() []string

Files ...

func (*Artifact) Id

func (a *Artifact) Id() string

Id ...

func (*Artifact) State

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

State ...

func (*Artifact) String

func (a *Artifact) String() string

String ...

type Builder

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

Builder ...

func (*Builder) Cancel

func (b *Builder) Cancel()

Cancel ...

func (*Builder) Prepare

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

Prepare ...

func (*Builder) Run

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

Run ...

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"`
	IPv6                bool                `mapstructure:"ipv6"`
	PrivateNetworking   bool                `mapstructure:"private_networking"`
	ScriptID            int                 `mapstructure:"startup_script_id"`
	ScriptName          string              `mapstructure:"startup_script_name"`
	SSHKeyID            string              `mapstructure:"sshkey_id"`
	SSHKeyName          string              `mapstructure:"sshkey_name"`
	SnapshotID          string              `mapstructure:"snapshot_id"`
	SnapshotName        string              `mapstructure:"snapshot_name"`
	ShutdownCommand     string              `mapstructure:"shutdown_command"`
	RawStateTimeout     string              `mapstructure:"state_timeout"`
	// contains filtered or unexported fields
}

Config ...

Jump to

Keyboard shortcuts

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