blob: 109f78f506729e73852e6ba7a5fe57c5d57e8614 [file] [log] [blame]
/*
Package quotasets enables retrieving and managing Block Storage quotas.
Example to Get a Quota Set
quotaset, err := quotasets.Get(blockStorageClient, "project-id").Extract()
if err != nil {
panic(err)
}
fmt.Printf("%+v\n", quotaset)
Example to Get Quota Set Usage
quotaset, err := quotasets.GetUsage(blockStorageClient, "project-id").Extract()
if err != nil {
panic(err)
}
fmt.Printf("%+v\n", quotaset)
Example to Update a Quota Set
updateOpts := quotasets.UpdateOpts{
Volumes: gophercloud.IntToPointer(100),
}
quotaset, err := quotasets.Update(blockStorageClient, "project-id", updateOpts).Extract()
if err != nil {
panic(err)
}
fmt.Printf("%+v\n", quotaset)
Example to Delete a Quota Set
err := quotasets.Delete(blockStorageClient, "project-id").ExtractErr()
if err != nil {
panic(err)
}
*/
package quotasets