region

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client added in v1.0.0

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

Client provides a caching layer for retrieval of region assets, and lazy population.

func New added in v1.0.0

func New(clientGetter ClientGetterFunc) *Client

New returns a new client.

func (*Client) Client added in v1.0.0

Client returns a client.

func (*Client) DeleteServer added in v1.6.0

func (c *Client) DeleteServer(ctx context.Context, organizationID, projectID, identityID, serverID string) error

func (*Client) Flavors added in v1.0.0

func (c *Client) Flavors(ctx context.Context, organizationID, regionID string) ([]regionapi.Flavor, error)

Flavors returns all compute compatible flavors.

func (*Client) Images added in v1.0.0

func (c *Client) Images(ctx context.Context, organizationID, regionID string) ([]regionapi.Image, error)

Images returns all compute compatible images.

func (*Client) List added in v1.0.0

func (c *Client) List(ctx context.Context, organizationID string) ([]regionapi.RegionRead, error)

List lists all regions.

func (*Client) Servers added in v1.6.0

func (c *Client) Servers(ctx context.Context, organizationID string, cluster *unikornv1.ComputeCluster) ([]regionapi.ServerRead, error)

type ClientGetterFunc added in v1.0.0

ClientGetterFunc allows us to lazily instantiate a client only when needed to avoid the TLS handshake and token exchange.

Jump to

Keyboard shortcuts

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