instance

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2026 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertNetworking added in v1.12.0

func ConvertUserData added in v1.12.0

func ConvertUserData(in []byte) *[]byte

func GenerateNetworking added in v1.12.0

func GenerateUserData added in v1.12.0

func GenerateUserData(in *[]byte) []byte

Types

type Client

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

func NewClient

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) Snapshot added in v1.13.0

func (c *Client) Snapshot(ctx context.Context, instanceID string, params computeapi.InstanceSnapshotCreate) (*regionapi.ImageResponse, 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