summaryrefslogtreecommitdiff
path: root/vendor/github.com/mitchellh/packer/builder/oracle/oci/client/compute.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/mitchellh/packer/builder/oracle/oci/client/compute.go')
-rw-r--r--vendor/github.com/mitchellh/packer/builder/oracle/oci/client/compute.go21
1 files changed, 21 insertions, 0 deletions
diff --git a/vendor/github.com/mitchellh/packer/builder/oracle/oci/client/compute.go b/vendor/github.com/mitchellh/packer/builder/oracle/oci/client/compute.go
new file mode 100644
index 00000000..183a3794
--- /dev/null
+++ b/vendor/github.com/mitchellh/packer/builder/oracle/oci/client/compute.go
@@ -0,0 +1,21 @@
+package oci
+
+// ComputeClient is a client for the OCI Compute API.
+type ComputeClient struct {
+ BaseURL string
+ Instances *InstanceService
+ Images *ImageService
+ VNICAttachments *VNICAttachmentService
+ VNICs *VNICService
+}
+
+// NewComputeClient creates a new client for communicating with the OCI
+// Compute API.
+func NewComputeClient(s *baseClient) *ComputeClient {
+ return &ComputeClient{
+ Instances: NewInstanceService(s),
+ Images: NewImageService(s),
+ VNICAttachments: NewVNICAttachmentService(s),
+ VNICs: NewVNICService(s),
+ }
+}