diff options
Diffstat (limited to 'vendor/github.com/mitchellh/packer/builder/oracle/oci/driver.go')
-rw-r--r-- | vendor/github.com/mitchellh/packer/builder/oracle/oci/driver.go | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/vendor/github.com/mitchellh/packer/builder/oracle/oci/driver.go b/vendor/github.com/mitchellh/packer/builder/oracle/oci/driver.go new file mode 100644 index 00000000..51f6c364 --- /dev/null +++ b/vendor/github.com/mitchellh/packer/builder/oracle/oci/driver.go @@ -0,0 +1,16 @@ +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 +} |