Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
29 lines (23 sloc) 442 Bytes
package openstack
import "fmt"
type Volume struct {
name string
id string
client volumesClient
func NewVolume(name string, id string, client volumesClient) Volume {
return Volume{
name: name,
id: id,
client: client,
func (v Volume) Name() string {
return fmt.Sprintf("%s %s",,
func (Volume) Type() string {
return "Volume"
func (v Volume) Delete() error {
return v.client.Delete(
You can’t perform that action at this time.