v0.12.0 Latest Latest

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

Go to latest
Published: Nov 15, 2016 License: MPL-2.0 Imports: 21 Imported by: 0




View Source
const BuilderId = "packer.profitbricks"


This section is empty.


This section is empty.


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 (a *Artifact) Files() []string

func (*Artifact) Id

func (*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{}) ([]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"`

	PBUsername string `mapstructure:"username"`
	PBPassword string `mapstructure:"password"`
	PBUrl      string `mapstructure:"url"`

	Region           string `mapstructure:"location"`
	Image            string `mapstructure:"image"`
	SSHKey           string
	SSHKey_path      string              `mapstructure:"ssh_key_path"`
	SnapshotName     string              `mapstructure:"snapshot_name"`
	SnapshotPassword string              `mapstructure:"snapshot_password"`
	DiskSize         int                 `mapstructure:"disk_size"`
	DiskType         string              `mapstructure:"disk_type"`
	Cores            int                 `mapstructure:"cores"`
	Ram              int                 `mapstructure:"ram"`
	Timeout          int                 `mapstructure:"timeout"`
	CommConfig       communicator.Config `mapstructure:",squash"`
	// contains filtered or unexported fields

func NewConfig

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

type Message

type Message struct {
	ErrorCode string `json:"errorCode,omitempty"`
	Message   string `json:"message,omitempty"`

type RestError

type RestError struct {
	HttpStatus int       `json:"httpStatus,omitempty"`
	Messages   []Message `json:"messages,omitempty"`

type StepCreateSSHKey

type StepCreateSSHKey struct {
	Debug        bool
	DebugKeyPath string

func (*StepCreateSSHKey) Cleanup

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

func (*StepCreateSSHKey) Run

Jump to

Keyboard shortcuts

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