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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	VALID_QOS_KEY = map[string]func(int) bool{
		"IOTYPE": func(value int) bool {
			return value == 0 || value == 1 || value == 2
		},
		"MAXBANDWIDTH": func(value int) bool {
			return value > 0
		},
		"MINBANDWIDTH": func(value int) bool {
			return value > 0
		},
		"MAXIOPS": func(value int) bool {
			return value > 0
		},
		"MINIOPS": func(value int) bool {
			return value > 0
		},
		"LATENCY": func(value int) bool {
			return value > 0
		},
	}
)

Functions

func VerifyQos

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

Types

type SmartX

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

func NewSmartX

func NewSmartX(cli *client.Client) *SmartX

func (*SmartX) CreateFSSnapshot

func (p *SmartX) CreateFSSnapshot(name, srcFSID string) (string, error)

func (*SmartX) CreateLunSnapshot

func (p *SmartX) CreateLunSnapshot(name, srcLunID string) (map[string]interface{}, error)

func (*SmartX) CreateQos

func (p *SmartX) CreateQos(objID, objType string, params map[string]int) (string, error)

func (*SmartX) DeleteFSSnapshot

func (p *SmartX) DeleteFSSnapshot(snapshotID string) error

func (*SmartX) DeleteLunSnapshot

func (p *SmartX) DeleteLunSnapshot(snapshotID string) error

func (*SmartX) DeleteQos

func (p *SmartX) DeleteQos(qosID, objID, objType string) error

Jump to

Keyboard shortcuts

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