region

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNetwork added in v1.12.0

func GetNetwork(ctx context.Context, client regionapi.ClientWithResponsesInterface, organizationID, projectID, networkID string) (*regionapi.NetworkV2Read, error)

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

New returns a new client.

func (*Client) CreateConsoleSession added in v1.8.0

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

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) GetConsoleOutput added in v1.8.0

func (*Client) HardRebootServer added in v1.7.0

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

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)

func (*Client) SoftRebootServer added in v1.7.0

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

func (*Client) StartServer added in v1.7.0

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

func (*Client) StopServer added in v1.7.0

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

type ClientInterface added in v1.7.1

type ClientInterface interface {
	Flavors(ctx context.Context, organizationID, regionID string) ([]regionapi.Flavor, error)
	Images(ctx context.Context, organizationID, regionID string) ([]regionapi.Image, error)
}

Directories

Path Synopsis
Code generated by MockGen.
Code generated by MockGen.

Jump to

Keyboard shortcuts

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