Versions in this module Expand all Collapse all v1 v1.3.2 Jan 24, 2017 Changes in this version type Client + func NewFromOpts(ep string, dSize int64, storageIP string, acct string) (c *Client, err error) + func (c *Client) MergeQoS(theType string, rQos string) QoS + func (c *Client) ModifyVolume(modReq *ModifyVolumeRequest) (err error) + type ModifyVolumeRequest struct + AccountID int64 + Attributes interface{} + Qos QoS + TotalSize int64 + VolumeID int64 v1.3.1 Sep 13, 2016 v1.3.0 Sep 3, 2016 Changes in this version + func FormatVolume(device, fsType string) error + func GetFSType(device string) string + func GetInitiatorIqns() ([]string, error) + func LoginWithChap(tiqn, portal, username, password, iface string) error + func Mount(device, mountpoint string) error + func NewReqID() int + func Umount(mountpoint string) error + type APIError struct + Error struct{ ... } + Id int + type Account struct + AccountID int64 + Attributes interface{} + InitiatorSecret string + Status string + TargetSecret string + Username string + Volumes []int64 + type AddAccountRequest struct + Attributes interface{} + InitiatorSecret string + TargetSecret string + Username string + type AddAccountResult struct + Id int + Result struct{ ... } + type AddInitiatorsToVolumeAccessGroupRequest struct + Initiators []string + VAGID int64 + type AddVolumesToVolumeAccessGroupRequest struct + VolumeAccessGroupID int64 + Volumes []int64 + type Client struct + Config *Config + DefaultAPIPort int + DefaultAccountID int64 + DefaultTenantName string + DefaultVolSize int64 + Endpoint string + SVIP string + VolumeTypes *[]VolType + func New() (c *Client, err error) + func NewFromConfig(configFile string) (c *Client, err error) + func (c *Client) AddAccount(req *AddAccountRequest) (accountID int64, err error) + func (c *Client) AddInitiatorsToVolumeAccessGroup(r *AddInitiatorsToVolumeAccessGroupRequest) error + func (c *Client) AddVolumeToAccessGroup(groupID int64, volIDs []int64) (err error) + func (c *Client) AttachVolume(v *Volume, iface string) (path, device string, err error) + func (c *Client) CloneVolume(req *CloneVolumeRequest) (vol Volume, err error) + func (c *Client) CreateSnapshot(req *CreateSnapshotRequest) (snapshot Snapshot, err error) + func (c *Client) CreateVolume(createReq *CreateVolumeRequest) (vol Volume, err error) + func (c *Client) CreateVolumeAccessGroup(r *CreateVolumeAccessGroupRequest) (vagID int64, err error) + func (c *Client) DeleteRange(startID, endID int64) + func (c *Client) DeleteSnapshot(snapshotID int64) (err error) + func (c *Client) DeleteVolume(volumeID int64) (err error) + func (c *Client) DetachVolume(v Volume) (err error) + func (c *Client) GetAccountByID(req *GetAccountByIDRequest) (account Account, err error) + func (c *Client) GetAccountByName(req *GetAccountByNameRequest) (account Account, err error) + func (c *Client) GetSnapshot(sfID int64, sfName string) (s Snapshot, err error) + func (c *Client) GetVolumeByID(volID int64) (v Volume, err error) + func (c *Client) GetVolumeByName(n string, acctID int64) (v Volume, err error) + func (c *Client) GetVolumesByName(sfName string, acctID int64) (v []Volume, err error) + func (c *Client) ListActiveVolumes(listVolReq *ListActiveVolumesRequest) (volumes []Volume, err error) + func (c *Client) ListSnapshots(req *ListSnapshotsRequest) (snapshots []Snapshot, err error) + func (c *Client) ListVolumeAccessGroups(r *ListVolumeAccessGroupsRequest) (vags []VolumeAccessGroup, err error) + func (c *Client) ListVolumesForAccount(listReq *ListVolumesForAccountRequest) (volumes []Volume, err error) + func (c *Client) Request(method string, params interface{}, id int) (response []byte, err error) + func (c *Client) RollbackToSnapshot(req *RollbackToSnapshotRequest) (newSnapID int64, err error) + type CloneVolumeRequest struct + Access string + Attributes interface{} + Name string + NewAccountID int64 + NewSize int64 + SnapshotID int64 + VolumeID int64 + type CloneVolumeResult struct + Id int + Result struct{ ... } + type Config struct + DefaultVolSz int64 + EndPoint string + InitiatorIFace string + MountPoint string + SVIP string + TenantName string + Types *[]VolType + func ProcessConfig(fname string) (Config, error) + type CreateSnapshotRequest struct + Attributes interface{} + EnableRemoteReplication bool + Name string + Retention string + SnapshotID int64 + VolumeID int64 + type CreateSnapshotResult struct + Id int + Result struct{ ... } + type CreateVolumeAccessGroupRequest struct + Initiators []string + Name string + Volumes []int64 + type CreateVolumeAccessGroupResult struct + Id int + Result struct{ ... } + type CreateVolumeRequest struct + AccountID int64 + Attributes interface{} + Enable512e bool + Name string + Qos QoS + TotalSize int64 + type CreateVolumeResult struct + Id int + Result struct{ ... } + type DeleteSnapshotRequest struct + SnapshotID int64 + type DeleteVolumeRequest struct + VolumeID int64 + type EmptyResponse struct + Id int + Result struct{} + type GetAccountByIDRequest struct + AccountID int64 + type GetAccountByNameRequest struct + Name string + type GetAccountResult struct + Id int + Result struct{ ... } + type ISCSITarget struct + Device string + Discovery string + Ip string + Iqn string + Lun string + Port string + Portal string + type ListActiveVolumesRequest struct + Limit int64 + StartVolumeID int64 + type ListSnapshotsRequest struct + VolumeID int64 + type ListSnapshotsResult struct + Id int + Result struct{ ... } + type ListVolumeAccessGroupsRequest struct + Limit int64 + StartVAGID int64 + type ListVolumesAccessGroupsResult struct + Id int + Result struct{ ... } + type ListVolumesForAccountRequest struct + AccountID int64 + type ListVolumesResult struct + Id int + Result struct{ ... } + type QoS struct + BurstIOPS int64 + BurstTime int64 + MaxIOPS int64 + MinIOPS int64 + type RollbackToSnapshotRequest struct + Attributes interface{} + Name string + SaveCurrentState bool + SnapshotID int64 + VolumeID int64 + type RollbackToSnapshotResult struct + Id int + Result struct{ ... } + type Snapshot struct + Attributes interface{} + Checksum string + CreateTime string + GroupID int64 + Name string + SnapshotID int64 + Status string + TotalSize int64 + VolumeID int64 + type VolType struct + QOS QoS + Type string + type Volume struct + Access string + AccountID int64 + Attributes interface{} + BlockSize int64 + CreateTime string + DeleteTime string + Enable512e bool + Iqn string + Name string + PurgeTime string + Qos QoS + ScsiEUIDeviceID string + ScsiNAADeviceID string + SliceCount int64 + Status string + TotalSize int64 + VirtualVolumeID string + VolumeAccessGroups []int64 + VolumeID int64 + VolumePairs []VolumePair + type VolumeAccessGroup struct + Attributes interface{} + DeletedVolumes []int64 + Initiators []string + Name string + VAGID int64 + Volumes []int64 + type VolumePair struct + ClusterPairID int64 + RemoteSliceID int64 + RemoteVolumeID int64 + RemoteVolumeName string + VolumePairUUID string