github.com/vijayrajah/packer@v1.3.2/post-processor/googlecompute-import/artifact.go (about)

     1  package googlecomputeimport
     2  
     3  import (
     4  	"fmt"
     5  )
     6  
     7  const BuilderId = "packer.post-processor.googlecompute-import"
     8  
     9  type Artifact struct {
    10  	paths []string
    11  }
    12  
    13  func (*Artifact) BuilderId() string {
    14  	return BuilderId
    15  }
    16  
    17  func (*Artifact) Id() string {
    18  	return ""
    19  }
    20  
    21  func (a *Artifact) Files() []string {
    22  	pathsCopy := make([]string, len(a.paths))
    23  	copy(pathsCopy, a.paths)
    24  	return pathsCopy
    25  }
    26  
    27  func (a *Artifact) String() string {
    28  	return fmt.Sprintf("Exported artifacts in: %s", a.paths)
    29  }
    30  
    31  func (*Artifact) State(name string) interface{} {
    32  	return nil
    33  }
    34  
    35  func (a *Artifact) Destroy() error {
    36  	return nil
    37  }