Documentation
¶
Overview ¶
Package image provides access to the `/cloud/stack/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) (*models.StackImage, error)
Get fetches a cloud image with the spcified code. calls list and filters. basically a helper.
type GetRequest ¶
type GetRequest struct {
Code string `json:"code"`
}
GetRequest represents a filtered request to the /cloud/stack/image/list_all.json endpoint.
type ListResponse ¶
type ListResponse struct {
Return []models.StackImage `json:"return"`
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.