Documentation ¶
Index ¶
- type Client
- func (c *Client) StorageImageCreate(ctx context.Context, s *spinregistry.Storage) (*spinregistry.Image, error)
- func (c *Client) StorageImageDelete(ctx context.Context, volumeName, imageName string) error
- func (c *Client) StorageImageGet(ctx context.Context, volumeName, imageName string) (*spinregistry.Storage, error)
- func (c *Client) StorageImageList(ctx context.Context, name string) ([]string, error)
- func (c *Client) StorageVolumeCreate(ctx context.Context, name, path string) error
- func (c *Client) StorageVolumeDelete(ctx context.Context, name string) error
- func (c *Client) StorageVolumeList(ctx context.Context) ([]string, error)
- func (c *Client) VMCreate(ctx context.Context, vm *spinregistry.UpdatedVM) (uint64, error)
- func (c *Client) VMDelete(ctx context.Context, id uint64) error
- func (c *Client) VMGet(ctx context.Context, id uint64) (*spinregistry.UpdatedVM, error)
- func (c *Client) VMList(ctx context.Context) ([]uint64, error)
- func (c *Client) VMUpdate(ctx context.Context, id uint64, vm *spinregistry.UpdatedVM) error
- type Config
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 the outer handle for the registry HTTP client.
func (*Client) StorageImageCreate ¶
func (c *Client) StorageImageCreate(ctx context.Context, s *spinregistry.Storage) (*spinregistry.Image, error)
StorageImageCreate creates an image
func (*Client) StorageImageDelete ¶
StorageImageDelete deletes an image by name & volume name
func (*Client) StorageImageGet ¶
func (c *Client) StorageImageGet(ctx context.Context, volumeName, imageName string) (*spinregistry.Storage, error)
StorageImageGet retrieves an image by name w/ volume name.
func (*Client) StorageImageList ¶
StorageImageList lists images for a given volume.
func (*Client) StorageVolumeCreate ¶
StorageVolumeCreate creates a volume by name.
func (*Client) StorageVolumeDelete ¶
StorageVolumeDelete deletes a volume by name.
func (*Client) StorageVolumeList ¶
StorageVolumeList lists all volumes by name.
Click to show internal directories.
Click to hide internal directories.