Documentation
¶
Overview ¶
Package image provides access to the `/cloud/image` API endpoint.
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
}
Client is a Service to work with API Jobs.
func (*Client) Get ¶
func (s *Client) Get(ctx context.Context, request GetRequest) (response GetResponse, err error)
Get fetches a cloud image.
type GetRequest ¶
type GetRequest struct {
Code string `json:"code"`
}
GetRequest represents a request to get a specific image from the /cloud/image/get.json endpoint.
type GetResponse ¶
type GetResponse struct {
Image models.CloudImage `json:"return"`
models.APIResponse
}
GetResponse represents the return from the /cloud/images/get.json endpoint.
type ListResponse ¶
type ListResponse struct {
Return struct {
models.Pagination
Images []models.CloudImage `json:"data"`
}
models.APIResponse
}
ListResponse represents the return from the /cloud/stack/image/list_all.json endpoint.
Click to show internal directories.
Click to hide internal directories.