github.phpd.cn/hashicorp/packer@v1.3.2/builder/triton/driver.go (about) 1 package triton 2 3 import ( 4 "time" 5 ) 6 7 type Driver interface { 8 GetImage(config Config) (string, error) 9 CreateImageFromMachine(machineId string, config Config) (string, error) 10 CreateMachine(config Config) (string, error) 11 DeleteImage(imageId string) error 12 DeleteMachine(machineId string) error 13 GetMachineIP(machineId string) (string, error) 14 StopMachine(machineId string) error 15 WaitForImageCreation(imageId string, timeout time.Duration) error 16 WaitForMachineDeletion(machineId string, timeout time.Duration) error 17 WaitForMachineState(machineId string, state string, timeout time.Duration) error 18 }