packer

package
v0.0.0-...-c50e0c2 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2014 License: BSD-2-Clause Imports: 7 Imported by: 0

Documentation

Overview

interact with packer. this parses packer's output. packer may be operated over ssh in the future.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Command

func Command(name string, args ...string) *exec.Cmd

func Validate

func Validate(path string) error

Types

type Decoder

type Decoder interface {
	Decode() (Output, error)
}

func NewDecoder

func NewDecoder(r io.Reader) Decoder

func NoUI

func NoUI(d Decoder) Decoder

type ErrorOutput

type ErrorOutput []Output

func (ErrorOutput) Error

func (err ErrorOutput) Error() string

type Opts

type Opts struct {
	Vars     []string
	Varfiles []string
	Only     []string
	Except   []string
}

type Output

type Output struct {
	Time   time.Time
	Target string
	Type   string
	Data   string
}

func Build

func Build(packerfile string, opts Opts) ([]Output, error)

func Fix

func Fix(path string) ([]Output, error)

func Inspect

func Inspect(path string) ([]Output, error)

func Run

func Run(cmd *exec.Cmd) ([]Output, error)

Jump to

Keyboard shortcuts

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