github.com/rothwerx/packer@v0.9.0/builder/vmware/iso/remote_driver.go (about) 1 package iso 2 3 import ( 4 vmwcommon "github.com/mitchellh/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 // Adds a VM to inventory specified by the path to the VMX given. 16 Register(string) error 17 18 // Removes a VM from inventory specified by the path to the VMX given. 19 Unregister(string) error 20 21 // Destroys a VM 22 Destroy() error 23 24 // Checks if the VM is destroyed. 25 IsDestroyed() (bool, error) 26 27 // Uploads a local file to remote side. 28 upload(dst, src string) error 29 30 // Reload VM on remote side. 31 ReloadVM() error 32 }