region

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2025 License: Apache-2.0 Imports: 16 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

This section is empty.

Types

type Client

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

func NewClient

func NewClient(client client.Client, namespace string) *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