Documentation
¶
Index ¶
- Variables
- func GenerateTags(requestTags *coreapi.TagList, extra map[string]string) map[string]string
- type Client
- func (c *Client) CreateImage(ctx context.Context, organizationID, regionID string, ...) (*openapi.ImageResponse, error)
- func (c *Client) DeleteImage(ctx context.Context, organizationID, regionID, imageID string) error
- func (c *Client) ListImages(ctx context.Context, organizationID, regionID string) (openapi.Images, error)
- func (c *Client) QueryImages(ctx context.Context, regionID string, ...) (openapi.Images, error)
- type GetProviderFunc
- type Provider
Constants ¶
This section is empty.
Variables ¶
View Source
var ConvertImage = convertImage
Export this so it can be used for server snapshot.
View Source
var ErrFailedImageFetch = goerrors.New("image fetch failed")
View Source
var ErrProviderResource = goerrors.New("conflict with resource at provider")
View Source
var ErrUnknownDiskFormat = errors.New("unknown image format")
Functions ¶
Types ¶
type Client ¶
type Client struct {
common.ClientArgs
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(clientArgs common.ClientArgs, getProvider GetProviderFunc) *Client
func (*Client) CreateImage ¶ added in v1.12.0
func (c *Client) CreateImage(ctx context.Context, organizationID, regionID string, request *openapi.ImageCreateRequest) (*openapi.ImageResponse, error)
func (*Client) DeleteImage ¶ added in v1.12.0
func (*Client) ListImages ¶
type GetProviderFunc ¶ added in v1.12.0
Click to show internal directories.
Click to hide internal directories.