Documentation
¶
Index ¶
- type InstanceAPI
- func (i *InstanceAPI) CreateInstance(req models.CreateInstanceRequest) (string, error)
- func (i *InstanceAPI) DeleteInstance(id string) error
- func (i *InstanceAPI) GetInstance(id string) (*models.InstanceInfo, error)
- func (i *InstanceAPI) ListInstances(instanceID, status, chargeType string, page, size int) (*models.ListInstancesResponse, error)
- func (i *InstanceAPI) StartInstance(id string) error
- func (i *InstanceAPI) StopInstance(id string) error
- type MarketAPI
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 (*MarketAPI) ListMarketCommon ¶
func (m *MarketAPI) ListMarketCommon() (*models.MarketResponse, error)
func (*MarketAPI) ListMarketImages ¶
func (*MarketAPI) ListMarketMachines ¶
Click to show internal directories.
Click to hide internal directories.