cloudvolumes

package
v0.0.0-...-e794f14 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IopsAndThroughputOpts

type IopsAndThroughputOpts struct {
	Iops       int `json:"iops" required:"true"`
	Throughput int `json:"throughput,omitempty"`
}

type JobResponse

type JobResponse struct {
	JobID string `json:"job_id"`
}

JobResponse contains all the information from UpdateQoS response

type JobResult

type JobResult struct {
	golangsdk.Result
}

JobResult contains the response body and error from UpdateQoS response

func ModifyQoS

func ModifyQoS(client *golangsdk.ServiceClient, id string, opts UpdateQoSOptsBuilder) (r JobResult)

func (JobResult) Extract

func (r JobResult) Extract() (*JobResponse, error)

Extract will get the JobResponse object out of the JobResult

type QoSModifyOpts

type QoSModifyOpts struct {
	IopsAndThroughputOpts IopsAndThroughputOpts `json:"qos_modify" required:"true"`
}

func (QoSModifyOpts) ToVolumeUpdateQoSMap

func (opts QoSModifyOpts) ToVolumeUpdateQoSMap() (map[string]interface{}, error)

type UpdateQoSOptsBuilder

type UpdateQoSOptsBuilder interface {
	ToVolumeUpdateQoSMap() (map[string]interface{}, error)
}

Jump to

Keyboard shortcuts

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