github.com/mmcquillan/packer@v1.1.1-0.20171009221028-c85cf0483a5d/builder/oracle/oci/client/compute.go (about) 1 package oci 2 3 // ComputeClient is a client for the OCI Compute API. 4 type ComputeClient struct { 5 BaseURL string 6 Instances *InstanceService 7 Images *ImageService 8 VNICAttachments *VNICAttachmentService 9 VNICs *VNICService 10 } 11 12 // NewComputeClient creates a new client for communicating with the OCI 13 // Compute API. 14 func NewComputeClient(s *baseClient) *ComputeClient { 15 return &ComputeClient{ 16 Instances: NewInstanceService(s), 17 Images: NewImageService(s), 18 VNICAttachments: NewVNICAttachmentService(s), 19 VNICs: NewVNICService(s), 20 } 21 }