instance

package
v1.11.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2025 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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, identity identityclient.APIClientGetter, region RegionAPIClientGetter) *Client

New creates a new client.

func (*Client) ConsoleSession

func (c *Client) ConsoleSession(ctx context.Context, instanceID string) (*regionapi.ConsoleSessionResponse, error)

func (*Client) Create

func (*Client) Delete

func (c *Client) Delete(ctx context.Context, instanceID string) error

func (*Client) Get

func (c *Client) Get(ctx context.Context, instanceID string) (*computeapi.InstanceRead, error)

func (*Client) GetRaw

func (c *Client) GetRaw(ctx context.Context, instanceID string) (*computev1.ComputeInstance, error)

func (*Client) Reboot

func (*Client) SSHKey

func (c *Client) SSHKey(ctx context.Context, instanceID string) (*regionapi.SshKey, error)

func (*Client) Start

func (c *Client) Start(ctx context.Context, instanceID string) error

func (*Client) Stop

func (c *Client) Stop(ctx context.Context, instanceID string) error

func (*Client) Update

func (c *Client) Update(ctx context.Context, instanceID string, request *computeapi.InstanceUpdate) (*computeapi.InstanceRead, error)

Jump to

Keyboard shortcuts

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