Documentation
¶
Index ¶
- type Client
- func (c *Client) Apply(vmID, snapshotID string) error
- func (c *Client) Create(vmID string, opts ...opts.CreateSnapshotOpts) (*model.SnapshotV2, error)
- func (c *Client) Delete(vmID, snapshotID string) error
- func (c *Client) Get(vmID string, id string, opts ...opts.GetSnapshotOpts) (*model.SnapshotV2, error)
- func (c *Client) GetByName(vmID string, name string, opts ...opts.GetSnapshotOpts) (*model.SnapshotV2, error)
- func (c *Client) List(vmID string, opts ...opts.ListSnapshotOpts) ([]model.SnapshotV2, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { V2 clients.V2 client.BaseClient[Client] }
func (*Client) Create ¶
func (c *Client) Create(vmID string, opts ...opts.CreateSnapshotOpts) (*model.SnapshotV2, error)
Create creates a snapshot
func (*Client) Get ¶
func (c *Client) Get(vmID string, id string, opts ...opts.GetSnapshotOpts) (*model.SnapshotV2, error)
Get gets a snapshot
func (*Client) GetByName ¶
func (c *Client) GetByName(vmID string, name string, opts ...opts.GetSnapshotOpts) (*model.SnapshotV2, error)
GetByName gets a snapshot by name
func (*Client) List ¶
func (c *Client) List(vmID string, opts ...opts.ListSnapshotOpts) ([]model.SnapshotV2, error)
List lists snapshots
Click to show internal directories.
Click to hide internal directories.