null

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2014 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const BuilderId = "fnoeding.null"

Variables

This section is empty.

Functions

func SSHAddress

func SSHAddress(host string, port int) func(multistep.StateBag) (string, error)

SSHAddress returns a function that can be given to the SSH communicator for determining the SSH address

func SSHConfig

func SSHConfig(username string, password string, privateKeyFile string) func(multistep.StateBag) (*gossh.ClientConfig, error)

SSHConfig returns a function that can be used for the SSH communicator config for connecting to the specified host via SSH private_key_file has precedence over password!

Types

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"`

	Host              string `mapstructure:"host"`
	Port              int    `mapstructure:"port"`
	SSHUsername       string `mapstructure:"ssh_username"`
	SSHPassword       string `mapstructure:"ssh_password"`
	SSHPrivateKeyFile string `mapstructure:"ssh_private_key_file"`
	// contains filtered or unexported fields
}

func NewConfig

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

type NullArtifact

type NullArtifact struct {
}

dummy Artifact implementation - does nothing

func (*NullArtifact) BuilderId

func (*NullArtifact) BuilderId() string

func (*NullArtifact) Destroy

func (a *NullArtifact) Destroy() error

func (*NullArtifact) Files

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

func (*NullArtifact) Id

func (*NullArtifact) Id() string

func (*NullArtifact) String

func (a *NullArtifact) String() string

Jump to

Keyboard shortcuts

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