github.com/rothwerx/packer@v0.9.0/post-processor/atlas/artifact.go (about) 1 package atlas 2 3 import ( 4 "fmt" 5 ) 6 7 const BuilderId = "packer.post-processor.atlas" 8 9 type Artifact struct { 10 Name string 11 Type string 12 Version int 13 } 14 15 func (*Artifact) BuilderId() string { 16 return BuilderId 17 } 18 19 func (a *Artifact) Files() []string { 20 return nil 21 } 22 23 func (a *Artifact) Id() string { 24 return fmt.Sprintf("%s/%s/%d", a.Name, a.Type, a.Version) 25 } 26 27 func (a *Artifact) String() string { 28 return fmt.Sprintf("%s/%s (v%d)", a.Name, a.Type, a.Version) 29 } 30 31 func (*Artifact) State(name string) interface{} { 32 return nil 33 } 34 35 func (a *Artifact) Destroy() error { 36 return nil 37 }