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 New ¶
func New(c HTTPClient) *Client
func (*Client) Index ¶
func (c *Client) Index(ctx context.Context, req *IndexRequest) (*IndexResponse, error)
Index QEMU capabilities index.
func (*Client) IndexCpu ¶
func (c *Client) IndexCpu(ctx context.Context, req *IndexCpuRequest) (*IndexCpuResponse, error)
IndexCpu List all custom and default CPU models.
func (*Client) TypesMachines ¶
func (c *Client) TypesMachines(ctx context.Context, req *TypesMachinesRequest) (*TypesMachinesResponse, error)
TypesMachines Get available QEMU/KVM machine types.
type HTTPClient ¶
type IndexCpuRequest ¶
type IndexCpuRequest struct {
Node string `url:"node" json:"node"` // The cluster node name.
}
type IndexCpuResponse ¶
type IndexCpuResponse []*struct { Custom util.SpecialBool `url:"custom" json:"custom"` // True if this is a custom CPU model. Name string `url:"name" json:"name"` // Name of the CPU model. Identifies it for subsequent API calls. Prefixed with 'custom-' for custom models. Vendor string `url:"vendor" json:"vendor"` // CPU vendor visible to the guest when this model is selected. Vendor of 'reported-model' in case of custom models. }
type IndexRequest ¶
type IndexRequest struct {
Node string `url:"node" json:"node"` // The cluster node name.
}
type IndexResponse ¶
type IndexResponse []*map[string]interface{}
type TypesMachinesRequest ¶
type TypesMachinesRequest struct {
Node string `url:"node" json:"node"` // The cluster node name.
}
type TypesMachinesResponse ¶
Click to show internal directories.
Click to hide internal directories.