smartx

package
v4.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package smartx provides operations for storage qos and snapshot

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckQoSParameterSupport

func CheckQoSParameterSupport(ctx context.Context, product, qosConfig string) error

CheckQoSParameterSupport verify QoS supported parameters and value validation

func ExtractQoSParameters

func ExtractQoSParameters(ctx context.Context, product string, qosConfig string) (map[string]float64, error)

ExtractQoSParameters unmarshal QoS configuration parameters

func ValidateQoSParameters

func ValidateQoSParameters(product string, qosParam map[string]float64) (map[string]int, error)

ValidateQoSParameters check QoS parameters

Types

type SmartX

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

SmartX provides smartx client

func NewSmartX

func NewSmartX(cli client.BaseClientInterface) *SmartX

NewSmartX inits a new smartx client

func (*SmartX) CreateFSSnapshot

func (p *SmartX) CreateFSSnapshot(ctx context.Context, name, srcFSID string) (string, error)

CreateFSSnapshot creates fs snapshot

func (*SmartX) CreateLunSnapshot

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

CreateLunSnapshot creates lun snapshot

func (*SmartX) CreateQos

func (p *SmartX) CreateQos(ctx context.Context,
	objID, objType, vStoreID string,
	params map[string]int) (string, error)

CreateQos creates qos and return its id

func (*SmartX) DeleteFSSnapshot

func (p *SmartX) DeleteFSSnapshot(ctx context.Context, snapshotID string) error

DeleteFSSnapshot deletes fs snapshot by id

func (*SmartX) DeleteLunSnapshot

func (p *SmartX) DeleteLunSnapshot(ctx context.Context, snapshotID string) error

DeleteLunSnapshot deletes lun snapshot by id

func (*SmartX) DeleteQos

func (p *SmartX) DeleteQos(ctx context.Context, qosID, objID, objType, vStoreID string) error

DeleteQos deletes qos by id

Jump to

Keyboard shortcuts

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