packer-cn/artifact.go

32 lines
468 B
Go

package main
const BuilderId = "jetbrains.vsphere"
type Artifact struct {
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
}