2013-12-24 13:21:02 -05:00
|
|
|
package common
|
|
|
|
|
|
|
|
// OutputDir is an interface type that abstracts the creation and handling
|
|
|
|
// of the output directory for VMware-based products. The abstraction is made
|
|
|
|
// so that the output directory can be properly made on remote (ESXi) based
|
|
|
|
// VMware products as well as local.
|
2018-10-25 18:07:07 -04:00
|
|
|
// For remote builds, OutputDir interface is satisfied by the ESX5Driver.
|
2013-12-24 13:21:02 -05:00
|
|
|
type OutputDir interface {
|
|
|
|
DirExists() (bool, error)
|
|
|
|
ListFiles() ([]string, error)
|
|
|
|
MkdirAll() error
|
|
|
|
Remove(string) error
|
|
|
|
RemoveAll() error
|
|
|
|
SetOutputDir(string)
|
|
|
|
String() string
|
|
|
|
}
|