smartx

package
v0.0.0-...-36737da Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ValidQosKey = map[string]func(int) bool{
		"maxMBPS": func(value int) bool {
			return value > 0
		},
		"maxIOPS": func(value int) bool {
			return value > 0
		},
	}
)

Functions

func VerifyQos

func VerifyQos(qosConfig string) (map[string]int, error)

Types

type QoS

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

func NewQoS

func NewQoS(cli *client.Client) *QoS

func (*QoS) AddQoS

func (p *QoS) AddQoS(volName string, params map[string]int) (string, error)

func (*QoS) RemoveQoS

func (p *QoS) RemoveQoS(volName string) error

Jump to

Keyboard shortcuts

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