region

package
v1.14.1 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2026 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrResource is raised when a resource is in a bad state.
	ErrResource = goerrors.New("resource error")

	// ErrRegionNotFound is raised when a region doesn't exist.
	ErrRegionNotFound = goerrors.New("region doesn't exist")
)

Functions

func FilterRegions added in v1.13.0

func FilterRegions(ctx context.Context, regions *unikornv1.RegionList)

Types

type Client

type Client struct {
	common.ClientArgs
}

func NewClient

func NewClient(clientArgs common.ClientArgs) *Client

func (*Client) GetDetail added in v0.1.53

func (c *Client) GetDetail(ctx context.Context, regionID string) (*openapi.RegionDetailRead, error)

func (*Client) List

func (c *Client) List(ctx context.Context) (openapi.Regions, error)

func (*Client) ListExternalNetworks added in v1.3.0

func (c *Client) ListExternalNetworks(ctx context.Context, regionID string) (openapi.ExternalNetworks, error)

func (*Client) ListFlavors added in v1.3.0

func (c *Client) ListFlavors(ctx context.Context, organizationID, regionID string) (openapi.Flavors, error)

func (*Client) Provider

func (c *Client) Provider(ctx context.Context, regionID string) (types.Provider, error)

Jump to

Keyboard shortcuts

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