api

package
v0.0.1-alpha4 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2025 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InstanceAPI

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

func NewInstanceAPI

func NewInstanceAPI(client *client.Client) *InstanceAPI

func (*InstanceAPI) CreateInstance

func (i *InstanceAPI) CreateInstance(req models.CreateInstanceRequest) (string, error)

func (*InstanceAPI) DeleteInstance

func (i *InstanceAPI) DeleteInstance(id string) error

func (*InstanceAPI) GetInstance

func (i *InstanceAPI) GetInstance(id string) (*models.InstanceInfo, error)

func (*InstanceAPI) ListInstances

func (i *InstanceAPI) ListInstances(instanceID, status, chargeType string,
	page, size int) (*models.ListInstancesResponse, error)

func (*InstanceAPI) StartInstance

func (i *InstanceAPI) StartInstance(id string) error

func (*InstanceAPI) StopInstance

func (i *InstanceAPI) StopInstance(id string) error

type MarketAPI

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

func NewMarketAPI

func NewMarketAPI(client *client.Client) *MarketAPI

func (*MarketAPI) ListMarketCommon

func (m *MarketAPI) ListMarketCommon() (*models.MarketResponse, error)

func (*MarketAPI) ListMarketImages

func (m *MarketAPI) ListMarketImages() (*[]models.ImageItem, error)

func (*MarketAPI) ListMarketMachines

func (m *MarketAPI) ListMarketMachines(regionID, skuID, gpuType string, page, size int) (*models.ListMachinesResponse, error)

Jump to

Keyboard shortcuts

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