2016-04-14 20:29:27 -04:00
|
|
|
package triton
|
|
|
|
|
|
|
|
import (
|
|
|
|
"time"
|
|
|
|
)
|
|
|
|
|
|
|
|
type Driver interface {
|
|
|
|
CreateImageFromMachine(machineId string, config Config) (string, error)
|
|
|
|
CreateMachine(config Config) (string, error)
|
|
|
|
DeleteImage(imageId string) error
|
|
|
|
DeleteMachine(machineId string) error
|
2017-04-26 15:07:45 -04:00
|
|
|
GetMachineIP(machineId string) (string, error)
|
2016-04-14 20:29:27 -04:00
|
|
|
StopMachine(machineId string) error
|
|
|
|
WaitForImageCreation(imageId string, timeout time.Duration) error
|
|
|
|
WaitForMachineDeletion(machineId string, timeout time.Duration) error
|
|
|
|
WaitForMachineState(machineId string, state string, timeout time.Duration) error
|
|
|
|
}
|