hcloud

package
v0.0.0-...-db8829f Latest Latest
Warning

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

Go to latest
Published: May 17, 2019 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const BuilderID = "packer.hcloud"

Variables

This section is empty.

Functions

This section is empty.

Types

type Artifact

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

func (Artifact) BuilderId

func (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 (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{}) ([]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"`
	Comm                communicator.Config `mapstructure:",squash"`

	Token      string `mapstructure:"token"`
	ServerType string `mapstructure:"server_type"`

	ImageName   string `mapstructure:"image_name"`
	SourceImage string `mapstructure:"source_image"`

	Location   string `mapstructure:"location"`
	Datacenter string `mapstructure:"datacenter"`
	UserData   string `mapstructure:"user_data"`
	// contains filtered or unexported fields
}

type Waiter

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

func NewWaiter

func NewWaiter(client *hcloud.Client, timeout time.Duration) Waiter

func (*Waiter) WaitForImage

func (w *Waiter) WaitForImage(ctx context.Context, imageID int, status hcloud.ImageStatus) error

func (*Waiter) WaitForServer

func (w *Waiter) WaitForServer(ctx context.Context, serverID int, status hcloud.ServerStatus) error

Jump to

Keyboard shortcuts

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