Version: v0.7.5 Latest Latest

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

Go to latest
Published: Dec 10, 2014 License: MPL-2.0 Imports: 10 Imported by: 0




View Source
const ArtifactStateMetadata = "atlas.artifact.metadata"

Artifacts can return a map[string]string for this state key and this post-processor will automatically merge it into the metadata for any uploaded artifact versions.

View Source
const ArtifactStateType = "atlas.artifact.type"

Artifacts can return a string for this state key and the post-processor will use automatically use this as the type. The user's value overrides this if `artifact_type_override` is set to true.

View Source
const BuildEnvKey = "ATLAS_BUILD_ID"
View Source
const BuilderId = ""


This section is empty.


This section is empty.


type Artifact

type Artifact struct {
	Name    string
	Type    string
	Version int

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 (a *Artifact) Id() string

func (*Artifact) State

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

func (*Artifact) String

func (a *Artifact) String() string

type Config

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

	Artifact     string
	Type         string `mapstructure:"artifact_type"`
	TypeOverride bool   `mapstructure:"artifact_type_override"`
	Metadata     map[string]string

	ServerAddr string `mapstructure:"server_address"`
	Token      string

	// This shouldn't ever be set outside of unit tests.
	Test bool `mapstructure:"test"`
	// contains filtered or unexported fields

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(ui packer.Ui, artifact packer.Artifact) (packer.Artifact, bool, error)

Jump to

Keyboard shortcuts

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