github.com/gophercloud/gophercloud@v1.11.0/openstack/blockstorage/v3/volumes/doc.go (about)

     1  /*
     2  Package volumes provides information and interaction with volumes in the
     3  OpenStack Block Storage service. A volume is a detachable block storage
     4  device, akin to a USB hard drive. It can only be attached to one instance at
     5  a time.
     6  
     7  Example to create a Volume from a Backup
     8  
     9  	backupID := "20c792f0-bb03-434f-b653-06ef238e337e"
    10  	options := volumes.CreateOpts{
    11  		Name:     "vol-001",
    12  		BackupID: &backupID,
    13  	}
    14  
    15  	client.Microversion = "3.47"
    16  	volume, err := volumes.Create(client, options).Extract()
    17  	if err != nil {
    18  		panic(err)
    19  	}
    20  
    21  	fmt.Println(volume)
    22  */
    23  package volumes