region

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2025 License: Apache-2.0 Imports: 14 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")

	// ErrRegionProviderUnimplmented is raised when you haven't written
	// it yet!
	ErrRegionProviderUnimplmented = goerrors.New("region provider unimplmented")
)

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) Provider

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

Jump to

Keyboard shortcuts

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