Files
Packer-Cn/builder/triton/driver.go
T

19 lines
601 B
Go
Raw Normal View History

2016-04-14 17:29:27 -07:00
package triton
import (
"time"
)
type Driver interface {
GetImage(config Config) (string, error)
2016-04-14 17:29:27 -07:00
CreateImageFromMachine(machineId string, config Config) (string, error)
CreateMachine(config Config) (string, error)
DeleteImage(imageId string) error
DeleteMachine(machineId string) error
GetMachineIP(machineId string) (string, error)
2016-04-14 17:29:27 -07: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
}