image

package
v1.13.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 15, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

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

func (c *Client) DeleteImage(ctx context.Context, organizationID, regionID, imageID string) error

func (*Client) ListImages

func (c *Client) ListImages(ctx context.Context, organizationID, regionID string) (openapi.Images, error)

type GetProviderFunc added in v1.12.0

type GetProviderFunc func(context.Context, client.Client, string, string) (Provider, error)

type Provider added in v1.12.0

type Provider interface {
	types.ImageRead
	types.ImageWrite
}

func DefaultGetProvider added in v1.12.0

func DefaultGetProvider(ctx context.Context, c client.Client, namespace, regionID string) (Provider, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL