github.com/sneal/packer@v0.5.2/builder/vmware/iso/artifact.go (about) 1 package iso 2 3 import ( 4 "fmt" 5 ) 6 7 // Artifact is the result of running the VMware builder, namely a set 8 // of files associated with the resulting machine. 9 type Artifact struct { 10 builderId string 11 dir OutputDir 12 f []string 13 } 14 15 func (a *Artifact) BuilderId() string { 16 return a.builderId 17 } 18 19 func (a *Artifact) Files() []string { 20 return a.f 21 } 22 23 func (*Artifact) Id() string { 24 return "VM" 25 } 26 27 func (a *Artifact) String() string { 28 return fmt.Sprintf("VM files in directory: %s", a.dir) 29 } 30 31 func (a *Artifact) Destroy() error { 32 return a.dir.RemoveAll() 33 }