volumetypes

package
v0.5.25 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2022 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(client *golangsdk.ServiceClient, id string) (err error)

Types

type CreateOpts

type CreateOpts struct {
	// See VolumeType.
	ExtraSpecs map[string]interface{} `json:"extra_specs,omitempty"`
	// See VolumeType.
	Name string `json:"name,omitempty"`
}

type VolumeType

type VolumeType struct {
	// user-defined metadata
	ExtraSpecs map[string]interface{} `json:"extra_specs"`
	// unique identifier
	ID string `json:"id"`
	// display name
	Name string `json:"name"`
}

func Create

func Create(client *golangsdk.ServiceClient, opts CreateOpts) (*VolumeType, error)

func Get

func Get(client *golangsdk.ServiceClient, id string) (*VolumeType, error)

func List

func List(client *golangsdk.ServiceClient) ([]VolumeType, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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