Files

39 lines
967 B
Go
Raw Permalink Normal View History

2017-01-27 16:11:55 +02:00
package common
2013-12-24 11:31:57 -07:00
import (
2020-12-17 13:29:25 -08:00
packersdk "github.com/hashicorp/packer-plugin-sdk/packer"
)
type RemoteDriver interface {
2017-01-27 16:11:55 +02:00
Driver
// UploadISO uploads a local ISO to the remote side and returns the
// new path that should be used in the VMX along with an error if it
// exists.
UploadISO(path string, checksum string, ui packersdk.Ui) (string, error)
2018-04-26 10:56:48 -07:00
// RemoveCache deletes localPath from the remote cache.
RemoveCache(localPath string) error
// Adds a VM to inventory specified by the path to the VMX given.
Register(path string) error
// Removes a VM from inventory specified by the path to the VMX given.
Unregister(path string) error
2015-02-13 19:13:58 +09:00
// Destroys a VM
Destroy() error
// Checks if the VM is destroyed.
IsDestroyed() (bool, error)
// Uploads a local file to remote side.
upload(dst, src string, ui packersdk.Ui) error
// Download a remote file to a local file.
Download(src, dst string) error
// Reload VM on remote side.
ReloadVM() error
}