packer-cn/artifact.go

32 lines
480 B
Go
Raw Normal View History

package main
const BuilderId = "LizaTretyakova.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
}