2013-12-24 00:58:41 -05:00
|
|
|
package iso
|
2013-11-07 15:28:41 -05:00
|
|
|
|
2013-12-24 13:31:57 -05:00
|
|
|
import (
|
|
|
|
vmwcommon "github.com/mitchellh/packer/builder/vmware/common"
|
|
|
|
)
|
|
|
|
|
2013-11-07 15:28:41 -05:00
|
|
|
type RemoteDriver interface {
|
2013-12-24 13:31:57 -05:00
|
|
|
vmwcommon.Driver
|
2013-11-07 15:28:41 -05:00
|
|
|
|
|
|
|
// 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.
|
2014-06-12 01:33:34 -04:00
|
|
|
UploadISO(string, string, string) (string, error)
|
2013-11-07 15:28:41 -05:00
|
|
|
|
|
|
|
// Adds a VM to inventory specified by the path to the VMX given.
|
|
|
|
Register(string) error
|
|
|
|
|
|
|
|
// Removes a VM from inventory specified by the path to the VMX given.
|
|
|
|
Unregister(string) error
|
2014-11-16 13:31:08 -05:00
|
|
|
|
|
|
|
// Uploads a local file to remote side.
|
|
|
|
upload(dst, src string) error
|
|
|
|
|
|
|
|
// Reload VM on remote side.
|
|
|
|
ReloadVM() error
|
2013-11-07 15:28:41 -05:00
|
|
|
}
|