Documentation
¶
Index ¶
- func DoRawCloudStackRequest(ctx context.Context, apiURL string, toolName string, username, password string, ...) (json.RawMessage, error)
- func DoTypedCloudStackRequest[T any](ctx context.Context, apiURL string, toolName string, username, password string, ...) (*T, error)
- func GetAPICredentials(ctx context.Context, apiURL, username, password string) (string, string, error)
- type API
- type Client
- func (c *Client) DeployVM(name, templateID, serviceOfferingID, zoneID string) (string, error)
- func (c *Client) GetAPIClient() *cloudstack.CloudStackClient
- func (c *Client) GetDefaultZone() (string, error)
- func (c *Client) GetVMStatus(id string) (string, error)
- func (c *Client) ListApis(ctx context.Context, params *cloudstack.ListApisParams) ([]*cloudstack.Api, error)
- func (c *Client) ListTemplates() ([]map[string]string, error)
- func (c *Client) ListZones() ([]map[string]string, error)
- func (c *Client) Request(apiName string, params map[string]string) (interface{}, error)
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DoRawCloudStackRequest ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client represents a CloudStack API client
func (*Client) GetAPIClient ¶
func (c *Client) GetAPIClient() *cloudstack.CloudStackClient
GetAPIClient returns the underlying CloudStack API client
func (*Client) GetDefaultZone ¶
GetDefaultZone retrieves the default zone from CloudStack
func (*Client) GetVMStatus ¶
GetVMStatus retrieves the status of a virtual machine
func (*Client) ListApis ¶
func (c *Client) ListApis(ctx context.Context, params *cloudstack.ListApisParams) ([]*cloudstack.Api, error)
func (*Client) ListTemplates ¶
ListTemplates retrieves a list of templates from CloudStack
Click to show internal directories.
Click to hide internal directories.