Documentation
¶
Overview ¶
Package smartx provides operations for storage qos and snapshot
Index ¶
- func CheckQoSParameterSupport(ctx context.Context, product, qosConfig string) error
- func ExtractQoSParameters(ctx context.Context, product string, qosConfig string) (map[string]float64, error)
- func ValidateQoSParameters(product string, qosParam map[string]float64) (map[string]int, error)
- type SmartX
- func (p *SmartX) CreateFSSnapshot(ctx context.Context, name, srcFSID string) (string, error)
- func (p *SmartX) CreateLunSnapshot(ctx context.Context, name, srcLunID string) (map[string]interface{}, error)
- func (p *SmartX) CreateQos(ctx context.Context, objID, objType, vStoreID string, params map[string]int) (string, error)
- func (p *SmartX) DeleteFSSnapshot(ctx context.Context, snapshotID string) error
- func (p *SmartX) DeleteLunSnapshot(ctx context.Context, snapshotID string) error
- func (p *SmartX) DeleteQos(ctx context.Context, qosID, objID, objType, vStoreID string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckQoSParameterSupport ¶
CheckQoSParameterSupport verify QoS supported parameters and value validation
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 ¶
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 ¶
DeleteFSSnapshot deletes fs snapshot by id
func (*SmartX) DeleteLunSnapshot ¶
DeleteLunSnapshot deletes lun snapshot by id
Click to show internal directories.
Click to hide internal directories.