17 lines
504 B
Go
17 lines
504 B
Go
package oci
|
|
|
|
import (
|
|
client "github.com/hashicorp/packer/builder/oracle/oci/client"
|
|
)
|
|
|
|
// Driver interfaces between the builder steps and the OCI SDK.
|
|
type Driver interface {
|
|
CreateInstance(publicKey string) (string, error)
|
|
CreateImage(id string) (client.Image, error)
|
|
DeleteImage(id string) error
|
|
GetInstanceIP(id string) (string, error)
|
|
TerminateInstance(id string) error
|
|
WaitForImageCreation(id string) error
|
|
WaitForInstanceState(id string, waitStates []string, terminalState string) error
|
|
}
|