github.com/askholme/packer@v0.7.2-0.20140924152349-70d9566a6852/builder/null/artifact_export.go (about) 1 package null 2 3 import ( 4 "fmt" 5 ) 6 7 // dummy Artifact implementation - does nothing 8 type NullArtifact struct { 9 } 10 11 func (*NullArtifact) BuilderId() string { 12 return BuilderId 13 } 14 15 func (a *NullArtifact) Files() []string { 16 return []string{} 17 } 18 19 func (*NullArtifact) Id() string { 20 return "Null" 21 } 22 23 func (a *NullArtifact) String() string { 24 return fmt.Sprintf("Did not export anything. This is the null builder") 25 } 26 27 func (a *NullArtifact) Destroy() error { 28 return nil 29 }