manifest

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2019 License: MPL-2.0 Imports: 12 Imported by: 22

Documentation

Index

Constants

View Source
const BuilderId = "packer.post-processor.manifest"

Variables

This section is empty.

Functions

This section is empty.

Types

type Artifact

type Artifact struct {
	BuildName     string            `json:"name"`
	BuilderType   string            `json:"builder_type"`
	BuildTime     int64             `json:"build_time"`
	ArtifactFiles []ArtifactFile    `json:"files"`
	ArtifactId    string            `json:"artifact_id"`
	PackerRunUUID string            `json:"packer_run_uuid"`
	CustomData    map[string]string `json:"custom_data"`
}

func (*Artifact) BuilderId

func (a *Artifact) BuilderId() string

func (*Artifact) Destroy

func (a *Artifact) Destroy() error

func (*Artifact) Files

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

func (*Artifact) Id

func (a *Artifact) Id() string

func (*Artifact) State

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

func (*Artifact) String

func (a *Artifact) String() string

type ArtifactFile

type ArtifactFile struct {
	Name string `json:"name"`
	Size int64  `json:"size"`
}

type Config

type Config struct {
	common.PackerConfig `mapstructure:",squash"`

	OutputPath string            `mapstructure:"output"`
	StripPath  bool              `mapstructure:"strip_path"`
	CustomData map[string]string `mapstructure:"custom_data"`
	// contains filtered or unexported fields
}

type ManifestFile

type ManifestFile struct {
	Builds      []Artifact `json:"builds"`
	LastRunUUID string     `json:"last_run_uuid"`
}

type PostProcessor

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

func (*PostProcessor) Configure

func (p *PostProcessor) Configure(raws ...interface{}) error

func (*PostProcessor) PostProcess

func (p *PostProcessor) PostProcess(ctx context.Context, ui packer.Ui, source packer.Artifact) (packer.Artifact, bool, bool, error)

Jump to

Keyboard shortcuts

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