Documentation ¶
Index ¶
- type Client
- func (c *Client) CreateSnapshot(vmID, desc string) (*Snapshot, error)
- func (c *Client) DeleteSnapshot(vmId, snapShotId string) error
- func (c *Client) GetCreatedSnapshots(vmID string) ([]Snapshot, error)
- func (c *Client) GetSnapshot(vmID, snapshotid string) (*Snapshot, error)
- func (c *Client) GetVMs() ([]Vm, error)
- type Cluster
- type Clusters
- type Option
- type Snapshot
- type Snapshots
- type Vm
- type Vms
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 encapsulates communication with the oVirt API
func (*Client) CreateSnapshot ¶
CreateSnapshot creates a snapshot
func (*Client) DeleteSnapshot ¶
DeleteSnapshot deletes a snapshot
func (*Client) GetCreatedSnapshots ¶
GetCreatedSnapshots returns all snapshots created by oSnap for the specified VM
func (*Client) GetSnapshot ¶
GetSnapshot returns details for a snapshot
type Option ¶
type Option func(*Client)
func WithClusterFilter ¶
WithClusterFilter sets the cluster filter
func WithExcludes ¶
WithExcludes sets the exclude filters
func WithIncludes ¶
WithIncludes sets the include filters
Click to show internal directories.
Click to hide internal directories.