github.phpd.cn/hashicorp/packer@v1.3.2/builder/vmware/iso/remote_driver.go (about) 1 package iso 2 3 import ( 4 vmwcommon "github.com/hashicorp/packer/builder/vmware/common" 5 ) 6 7 type RemoteDriver interface { 8 vmwcommon.Driver 9 10 // UploadISO uploads a local ISO to the remote side and returns the 11 // new path that should be used in the VMX along with an error if it 12 // exists. 13 UploadISO(string, string, string) (string, error) 14 15 // RemoveCache deletes localPath from the remote cache. 16 RemoveCache(localPath string) error 17 18 // Adds a VM to inventory specified by the path to the VMX given. 19 Register(string) error 20 21 // Removes a VM from inventory specified by the path to the VMX given. 22 Unregister(string) error 23 24 // Destroys a VM 25 Destroy() error 26 27 // Checks if the VM is destroyed. 28 IsDestroyed() (bool, error) 29 30 // Uploads a local file to remote side. 31 upload(dst, src string) error 32 33 // Reload VM on remote side. 34 ReloadVM() error 35 }