snapshot

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateVolumeBySnapshot

func CreateVolumeBySnapshot(restClient *client.RestClient, snapshotId string, requestOpts *client.RequestOpts) (bool, error)

func DeleteSnapshot

func DeleteSnapshot(restClient *client.RestClient, snapshotId string, requestOpts *client.RequestOpts) (bool, error)

func List

func List(restClient *client.RestClient, requestOpts *client.RequestOpts) (*[]SnapshotInfo, error)

func ToIRSMyImage

func ToIRSMyImage(restClient *client.RestClient, associatedSnapshots *[]SnapshotInfo) (irs.MyImageInfo, error)

Types

type SnapshotInfo

type SnapshotInfo struct {
	Name       string
	Id         string
	ServerName string
	State      string
	CreatedAt  string

	// miscellaneous properties
	Bootable   string
	Creator    string
	TemplateId string
}

func CreateSnapshot

func CreateSnapshot(restClient *client.RestClient, requestOpts *client.RequestOpts) (SnapshotInfo, error)

func Get

func Get(restClient *client.RestClient, snapshotId string, requestOpts *client.RequestOpts) (SnapshotInfo, error)

type SnapshotReqInfo

type SnapshotReqInfo struct {
	Name     string `json:"name,omitempty"`
	VolumeId string `json:"volumeId,omitempty"`
}

Jump to

Keyboard shortcuts

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