packer-cn/artifact.go

32 lines
468 B
Go
Raw Normal View History

package main
2017-06-27 03:55:49 -04:00
const BuilderId = "jetbrains.vsphere"
type Artifact struct {
2017-06-27 03:55:49 -04:00
VMName string `json:"vm_name"`
}
func (a *Artifact) BuilderId() string {
return BuilderId
}
func (a *Artifact) Files() []string {
return []string{}
}
func (a *Artifact) Id() string {
return a.VMName
}
func (a *Artifact) String() string {
return a.VMName
}
func (a *Artifact) State(name string) interface{} {
return nil
}
func (a *Artifact) Destroy() error {
return nil
}