Documentation
¶
Index ¶
- Variables
- 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)
- 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 ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(client client.Client, namespace string, 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
type GetProviderFunc ¶ added in v1.12.0
Click to show internal directories.
Click to hide internal directories.