Versions in this module Expand all Collapse all v1 v1.0.1 Nov 3, 2021 v1.0.0 Mar 8, 2021 Changes in this version + const ErrCreateRequest + const ErrRequest + type Client struct + HTTPClient *http.Client + Logger *log.Logger + Password string + URL *url.URL + User string + func New(baseURL, username, password string, httpClient *http.Client, ...) (*Client, error) + func (c *Client) CopyVolume(ctx context.Context, poolName, originalVolumeName, newVolumeName string, ...) error + func (c *Client) CreateExport(ctx context.Context, poolName, volumeName string, lunID int, ...) error + func (c *Client) CreateVolume(ctx context.Context, poolName, volumeName string, sizeByte int) error + func (c *Client) DestroyExport(ctx context.Context, poolName, volumeName, initiatorWWN string) error + func (c *Client) DestroyVolume(ctx context.Context, poolName, volumeName string) error + func (c *Client) GetPool(ctx context.Context, poolName string) (*Pool, error) + func (c *Client) GetPoolList(ctx context.Context) ([]Pool, error) + func (c *Client) GetVolume(ctx context.Context, poolName, volumeName string) (*Volume, error) + func (c *Client) GetVolumeList(ctx context.Context, poolName string) ([]Volume, error) + func (c *Client) ListExport(ctx context.Context) ([]Export, error) + type ErrorResp struct + Code int + Message string + func (e ErrorResp) Error() error + type Export struct + InitiatorWwn string + LUN int + Pool string + VolName string + VolSize int + VolUUID string + type Pool struct + FreeSize int64 + Name string + Size int64 + Type string + UUID int64 + type Response struct + Error ErrorResp + ID int + JSONRPC string + Result interface{} + type Volume struct + Name string + Size int + UUID string