{"modulePath":"github.com/stackpointcloud/packer","version":"v0.10.1","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package atlas\n\n## Constants\n\n```go\nconst (\n\tBuildEnvKey   = \"ATLAS_BUILD_ID\"\n\tCompileEnvKey = \"ATLAS_COMPILE_ID\"\n)\n```\n\n```go\nconst ArtifactStateMetadata = \"atlas.artifact.metadata\"\n```\nArtifacts 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.\n\n```go\nconst ArtifactStateType = \"atlas.artifact.type\"\n```\nArtifacts 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.\n\n```go\nconst BuilderId = \"packer.post-processor.atlas\"\n```\n\n## Types\n\n```go\ntype Artifact struct {\n\tName    string\n\tType    string\n\tVersion int\n}\n```\n\n```go\nfunc (*Artifact) BuilderId() string\n```\n\n```go\nfunc (a *Artifact) Destroy() error\n```\n\n```go\nfunc (a *Artifact) Files() []string\n```\n\n```go\nfunc (a *Artifact) Id() string\n```\n\n```go\nfunc (*Artifact) State(name string) interface{}\n```\n\n```go\nfunc (a *Artifact) String() string\n```\n\n```go\ntype Config struct {\n\tcommon.PackerConfig `mapstructure:\",squash\"`\n\n\tArtifact     string\n\tType         string `mapstructure:\"artifact_type\"`\n\tTypeOverride bool   `mapstructure:\"artifact_type_override\"`\n\tMetadata     map[string]string\n\n\tServerAddr string `mapstructure:\"atlas_url\"`\n\tToken      string\n\n\t// This shouldn't ever be set outside of unit tests.\n\tTest bool `mapstructure:\"test\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\ntype PostProcessor struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (p *PostProcessor) Configure(raws ...interface{}) error\n```\n\n```go\nfunc (p *PostProcessor) PostProcess(ui packer.Ui, artifact packer.Artifact) (packer.Artifact, bool, error)\n```\n\n","path":"github.com/stackpointcloud/packer/post-processor/atlas","name":"atlas","synopsis":"","isRedistributable":true}
