github.com/mitchellh/packer@v1.3.2/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) State(name string) interface{} {
    28  	return nil
    29  }
    30  
    31  func (a *NullArtifact) Destroy() error {
    32  	return nil
    33  }