Documentation ¶
Index ¶
Constants ¶
View Source
const ( BuildEnvKey = "ATLAS_BUILD_ID" CompileEnvKey = "ATLAS_COMPILE_ID" )
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 BuilderId = "packer.post-processor.atlas"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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:"atlas_url"` 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
Click to show internal directories.
Click to hide internal directories.