vmstorage

package
v0.0.0-...-48565d0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// SnapshotCreatePath defines vmstorage endpoint to create instant snapshot
	SnapshotCreatePath = "/snapshot/create"

	// SnapshotDeleteAll defines vmstorage endpoint to delete all snapshots
	SnapshotDeleteAll = "/snapshot/delete_all"
)

Functions

This section is empty.

Types

type SnapClient

type SnapClient struct {
	// contains filtered or unexported fields
}

func New

func New(host string, port uint16, proto string) *SnapClient

New creates an instance of SnapClient

func (SnapClient) ComposeBasePath

func (c SnapClient) ComposeBasePath() string

func (SnapClient) CreateSnapshot

func (c SnapClient) CreateSnapshot() (*SnapResponse, error)

func (SnapClient) DeleteAllSnaps

func (c SnapClient) DeleteAllSnaps() (*SnapResponse, error)

type SnapResponse

type SnapResponse struct {
	Status   string `json:"status"`
	SnapName string `json:"snapshot"`
}

Jump to

Keyboard shortcuts

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