Documentation
¶
Index ¶
- Constants
- type Client
- func (c *Client) ConnectVolume(volumeID int64) (string, error)
- func (c *Client) CreateGroupSnapshot(volumes []int64, name string, enableRemoteReplication bool, ...) (*sdk.CreateGroupSnapshotResult, error)
- func (c *Client) DeleteGroupSnapshot(groupSnapshotID int64) error
- func (c *Client) DeleteVolume(volumeID int64) error
- func (c *Client) ExpandVolume(volumeID, newSize int64) error
- func (c *Client) GetClusterVersion() (string, error)
- func (c *Client) GetCreateVolume(req sdk.CreateVolumeRequest) (*sdk.Volume, error)
- func (c *Client) GetVolume(volumeID int64) (*sdk.Volume, error)
- func (c *Client) GetVolumeByName(volumeName string) (*sdk.Volume, error)
- func (c *Client) ListGroupSnapshots(volumes []int64) ([]sdk.GroupSnapshot, error)
- func (c *Client) ListISCSISessions() ([]sdk.ISCSISession, error)
- func (c *Client) ListVolumes() ([]sdk.Volume, error)
- func (c *Client) ModifyQoS(volumeID int64, qos *sdk.QoS) error
Constants ¶
View Source
const GiB = 1073741824
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
SFClient *sdk.SFClient
Endpoint string
URL string
Login string
Password string
Version string
SVIP string
DefaultVolumeSize string
InitiatorIface string
TargetSecret string
InitiatorSecret string
TenantName string
AccountID int64
Limits *sdk.GetLimitsResult
}
func NewClientFromSecrets ¶
func NewClientWithArgs ¶
func (*Client) CreateGroupSnapshot ¶
func (*Client) DeleteGroupSnapshot ¶
func (*Client) DeleteVolume ¶
func (*Client) ExpandVolume ¶
func (*Client) GetClusterVersion ¶ added in v1.0.1
func (*Client) GetCreateVolume ¶
func (*Client) GetVolumeByName ¶
func (*Client) ListGroupSnapshots ¶
func (c *Client) ListGroupSnapshots(volumes []int64) ([]sdk.GroupSnapshot, error)
func (*Client) ListISCSISessions ¶ added in v1.0.1
func (c *Client) ListISCSISessions() ([]sdk.ISCSISession, error)
Click to show internal directories.
Click to hide internal directories.