cloudvolumes

package
v0.0.0-...-d823fe1 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2021 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetURL

func GetURL(c *golangsdk.ServiceClient, CloudVolumeID string) string

func ListVolumeTypeURL

func ListVolumeTypeURL(c *golangsdk.ServiceClient) string

Types

type EdgeVolume

type EdgeVolume struct {
	Volume *common.Volume `json:"volume"`
}

EdgeVolume 云磁盘

type GetResult

type GetResult struct {
	// contains filtered or unexported fields
}

func Get

func Get(client *golangsdk.ServiceClient, CloudVolumeID string) (r GetResult)

func ListVolumeType

func ListVolumeType(client *golangsdk.ServiceClient) (r GetResult)

func (GetResult) Extract

func (r GetResult) Extract() (*EdgeVolume, error)

func (GetResult) ExtractVolumeType

func (r GetResult) ExtractVolumeType() (*VolumeType, error)

type ListOpts

type ListOpts struct {
	Limit  int    `q:"limit"`
	Offset int    `q:"offset"`
	Name   string `q:"name"`
	Status string `q:"status"`
}

ListOpts holds options for listing Voulmes. It is passed to the List function.

func (ListOpts) ToListVolumesQuery

func (opts ListOpts) ToListVolumesQuery() (string, error)

type ListOptsBuilder

type ListOptsBuilder interface {
	ToListVolumesQuery() (string, error)
}

type ListResult

type ListResult struct {
	// contains filtered or unexported fields
}

func List

func List(client *golangsdk.ServiceClient, opts ListOptsBuilder) (r ListResult)

func (ListResult) Extract

func (r ListResult) Extract() (*Volumes, error)

type VolumeType

type VolumeType struct {
	VolumeTypes []common.VolumeType `json:"volume_types"`
}

type Volumes

type Volumes struct {
	Volumes []common.Volume `json:"volumes"`
	Count   int             `json:"count"`
}

Volumes 卷列表对象

Jump to

Keyboard shortcuts

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