oci

package
v0.26.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 28, 2023 License: UPL-1.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SubnetAccess added in v0.11.0

func SubnetAccess(subnet core.Subnet) string

SubnetAccess returns public or private, depending on a subnet's access type

Types

type Client

type Client interface {
	GetSubnetById(context.Context, string) (*core.Subnet, error)
	GetImageIdByName(ctx context.Context, displayName, compartmentId string) (string, error)
}

Client interface for OCI Clients

func NewClient

func NewClient(provider common.ConfigurationProvider) (Client, error)

NewClient creates a new OCI Client

type ClientImpl

type ClientImpl struct {
	// contains filtered or unexported fields
}

ClientImpl OCI Client implementation

func (*ClientImpl) GetImageIdByName

func (c *ClientImpl) GetImageIdByName(ctx context.Context, displayName, compartmentId string) (string, error)

GetImageIdByName retrieves an image OCID given an image name and a compartment id, if that image exists.

func (*ClientImpl) GetSubnetById

func (c *ClientImpl) GetSubnetById(ctx context.Context, subnetId string) (*core.Subnet, error)

GetSubnetById retrieves a subnet given that subnet's Id.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL