summaryrefslogtreecommitdiff
path: root/vendor/github.com/mitchellh/packer/builder/oracle/oci/driver.go
blob: 51f6c364a63a6dd5fce782db9f692b72adf1c33f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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
}