fake

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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Images  map[string]string
	Subnets map[string]*core.Subnet
}

func (*Client) GetImageIdByName

func (c *Client) 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 (*Client) GetSubnetById

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

GetSubnetById retrieves a subnet given that subnet's Id.

Jump to

Keyboard shortcuts

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