File: doc.go

package info (click to toggle)
golang-github-gophercloud-gophercloud 1.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 11,416 kB
  • sloc: sh: 99; makefile: 21
file content (23 lines) | stat: -rw-r--r-- 572 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
Package volumes provides information and interaction with volumes in the
OpenStack Block Storage service. A volume is a detachable block storage
device, akin to a USB hard drive. It can only be attached to one instance at
a time.

Example to create a Volume from a Backup

	backupID := "20c792f0-bb03-434f-b653-06ef238e337e"
	options := volumes.CreateOpts{
		Name:     "vol-001",
		BackupID: &backupID,
	}

	client.Microversion = "3.47"
	volume, err := volumes.Create(client, options).Extract()
	if err != nil {
		panic(err)
	}

	fmt.Println(volume)
*/
package volumes