snapshots

package
v0.0.0-...-e71a76f Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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 New

func New(v2 clients.V2, cache ...*core.Cache) *Client

func (*Client) Apply

func (c *Client) Apply(vmID, snapshotID string) error

Apply applies a snapshot

func (*Client) Create

func (c *Client) Create(vmID string, opts ...opts.CreateSnapshotOpts) (*model.SnapshotV2, error)

Create creates a snapshot

func (*Client) Delete

func (c *Client) Delete(vmID, snapshotID string) error

Delete deletes 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

Jump to

Keyboard shortcuts

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