Versions in this module Expand all Collapse all v0 v0.6.1 Jul 4, 2019 v0.6.0 Jun 21, 2019 v0.5.5 Jun 20, 2019 v0.5.4 Jun 12, 2019 v0.5.3 Jun 3, 2019 Changes in this version + const DefaultConfPath + const DriverName + const ErrorSmHttpConflict + const ErrorSmVolSizeDecreased + const ErrorUnauthorizedToServer + const FcInitiatorDefaultGrpName + const IscsiInitiatorDefaultGrpName + const MaxDescriptionLength + const MaxNameLength + const NamePrefix + const PortNumPerContr + const PwdExpired + const PwdReset + const ThickLuntype + const ThinLuntype + const UnitGi + const UnitMebi + func Byte2Gib(byteSize int64) int64 + func EncodeName(id string) string + func Gib2Mebi(gigabyte int64) int64 + func TruncateDescription(desc string) string + type AccessControlRespBody struct + Data AccessControlRespData + type AccessControlRespData struct + AccessProtocol string + ApplyTo string + ChapUserId string + ChapUserName string + CreationTime int64 + Id string + InitiatorGroupId string + InitiatorGroupName string + LastModified int64 + Lun int64 + PeId string + PeIds []string + PeLun string + PeName string + SnapId string + SnapLuns []string + SnapName string + VolAgentType string + VolId string + VolName string + type AllAccessControlRespBody struct + Data []AccessControlRespData + EndRow int + StartRow int + TotalRows int + type AllInitiatorGrpRespBody struct + Data []InitiatorGrpRespData + EndRow int + StartRow int + TotalRows int + type AllInitiatorRespBody struct + Data []InitiatorRespData + EndRow int + StartRow int + TotalRows int + type AllSnapshotRespBody struct + Data []SnapshotRespData + EndRow int + StartRow int + TotalRows int + type AllVolumeRespBody struct + Data []VolumeRespData + EndRow int + StartRow int + TotalRows int + type ArrayInnerErrorBody struct + Errs []ArrayInnerErrorResp + func (e *ArrayInnerErrorBody) Error() string + type ArrayInnerErrorResp struct + Code string + Severity string + Text string + func (e *ArrayInnerErrorResp) Error() string + type ArrayList struct + ArrayId string + ArrayName string + EvacTime int64 + EvacUsage int64 + Id string + Migrate string + Name string + SnapUsageCompressedBytes int64 + UsableCapacity int64 + Usage int64 + UsageValid bool + VolUsageCompressedBytes int64 + type AuthOptions struct + Endpoints string + Insecure bool + Password string + Username string + type AuthRespBody struct + Data AuthRespData + type AuthRespData struct + AppName string + CreationTime int + Id int + LastModified int + SessionToken string + SourceIp string + UserName string + type ClinetErrors struct + Errs []error + func (e *ClinetErrors) Error() string + type Config struct + Pool map[string]PoolProperties + type CreateAccessControlReqBody struct + Data CreateAccessControlReqData + type CreateAccessControlReqData struct + ApplyTo string + ChapUserId string + InitiatorGroupId string + Lun string + PeId string + PeIds []string + SnapId string + VolId string + type CreateInitiatorGrpReqBody struct + Data CreateInitiatorGrpReqData + type CreateInitiatorGrpReqData struct + AccessProtocol string + AppUuid string + Description string + FcInitiators []map[string]string + HostType string + IscsiInitiators []map[string]string + Name string + TargetSubnets []map[string]string + type CreateInitiatorReqBody struct + Data CreateInitiatorReqData + type CreateInitiatorReqData struct + AccessProtocol string + Alias string + InitiatorGroupId string + IpAddress string + Iqn string + Label string + Wwpn string + type CreateSnapshotReqBody struct + Data CreateSnapshotReqData + type CreateSnapshotReqData struct + AgentType string + AppUuid string + Description string + Metadata interface{} + Name string + Online *bool + VolId string + Writable *bool + type CreateVolumeReqBody struct + Data CreateVolumeReqData + type CreateVolumeReqData struct + AgentType string + AppUuid string + BaseSnapId string + BlockSize int64 + CachePinned *bool + Clone bool + DedupeEnabled *bool + Description string + DestPoolId string + EncryptionCipher string + FolderId string + Limit int64 + LimitIops int64 + LimitMbps int64 + Metadata interface{} + MultiInitiator bool + Name string + Online *bool + OwnedByGroupId string + PerfpolicyId string + PoolId string + ReadOnly bool + Reserve int64 + Size int64 + SnapLimit int64 + SnapLimitPercent int64 + SnapReserve int64 + SnapWarnLevel int64 + WarnLevel int64 + type Driver struct + func (d *Driver) CopyVolume(opt *pb.CreateVolumeOpts, srcid, tgtid string) error + func (d *Driver) CreateSnapshot(opt *pb.CreateVolumeSnapshotOpts) (*model.VolumeSnapshotSpec, error) + func (d *Driver) CreateVolume(opt *pb.CreateVolumeOpts) (*model.VolumeSpec, error) + func (d *Driver) CreateVolumeGroup(opt *pb.CreateVolumeGroupOpts) (*model.VolumeGroupSpec, error) + func (d *Driver) DeleteSnapshot(opt *pb.DeleteVolumeSnapshotOpts) error + func (d *Driver) DeleteVolume(opt *pb.DeleteVolumeOpts) error + func (d *Driver) DeleteVolumeGroup(opt *pb.DeleteVolumeGroupOpts) error + func (d *Driver) ExtendVolume(opt *pb.ExtendVolumeOpts) (*model.VolumeSpec, error) + func (d *Driver) InitializeConnection(opt *pb.CreateVolumeAttachmentOpts) (*model.ConnectionInfo, error) + func (d *Driver) InitializeSnapshotConnection(opt *pb.CreateSnapshotAttachmentOpts) (*model.ConnectionInfo, error) + func (d *Driver) ListPools() ([]*model.StoragePoolSpec, error) + func (d *Driver) PullSnapshot(snapIdentifier string) (*model.VolumeSnapshotSpec, error) + func (d *Driver) PullVolume(volIdentifier string) (*model.VolumeSpec, error) + func (d *Driver) Setup() (err error) + func (d *Driver) TerminateConnection(opt *pb.DeleteVolumeAttachmentOpts) error + func (d *Driver) TerminateSnapshotConnection(opt *pb.DeleteSnapshotAttachmentOpts) error + func (d *Driver) Unset() error + func (d *Driver) UpdateVolumeGroup(opt *pb.UpdateVolumeGroupOpts) (*model.VolumeGroupSpec, error) + type ExtendVolumeReqBody struct + Data ExtendVolumeReqData + type ExtendVolumeReqData struct + AgentType string + AppUuid string + BlockSize int64 + CachePinned *bool + CachingEnabled *bool + DedupeEnabled *bool + Description string + FolderId string + Force *bool + Limit int64 + LimitIops int64 + LimitMbps int64 + Metadata interface{} + MultiInitiator bool + Name string + Online *bool + OwnedByGroupId string + PerfpolicyId string + ReadOnly bool + Reserve int64 + Size int64 + SnapLimit int64 + SnapLimitPercent int64 + SnapReserve int64 + SnapWarnLevel int64 + VolcollId string + WarnLevel int64 + type ExtendVolumeRespBody struct + Data VolumeRespData + type InitiatorGrpRespBody struct + Data InitiatorGrpRespData + type InitiatorGrpRespData struct + AccessProtocol string + AppUuid string + CreationTime int64 + Description string + FcInitiators []map[string]string + FullName string + HostType string + Id string + IscsiInitiators []map[string]string + LastModified int64 + Name string + NumConnections int64 + SearchName string + TargetSubnets []map[string]string + VolumeCount string + VolumeList []map[string]string + type InitiatorRespBody struct + Data InitiatorRespData + type InitiatorRespData struct + AccessProtocol string + Alias string + CreationTime int64 + Id string + InitiatorGroupId string + InitiatorGroupName string + IpAddress string + Iqn string + Label string + LastModified int64 + Wwpn string + type LoginReqBody struct + Data LoginReqData + type LoginReqData struct + Password string + Username string + type NimbleClient struct + func NewClient(opt *AuthOptions) (*NimbleClient, error) + func (c *NimbleClient) AttachVolume(poolId string, volName string, initiatorGrpId string) (*AccessControlRespData, error) + func (c *NimbleClient) CreateInitiatorDefaultGrp(poolId string, opt *pb.CreateVolumeAttachmentOpts) (*InitiatorGrpRespData, error) + func (c *NimbleClient) CreateSnapshot(poolId string, opt *pb.CreateVolumeSnapshotOpts) (*SnapshotRespData, error) + func (c *NimbleClient) CreateVolume(poolId string, opt *pb.CreateVolumeOpts) (*VolumeRespData, error) + func (c *NimbleClient) DeleteSnapshot(poolId string, opt *pb.DeleteVolumeSnapshotOpts) error + func (c *NimbleClient) DeleteVolume(poolId string, opt *pb.DeleteVolumeOpts) error + func (c *NimbleClient) DetachVolume(poolId string, storageAceessId string) error + func (c *NimbleClient) ExtendVolume(poolId string, opt *pb.ExtendVolumeOpts) (*VolumeRespData, error) + func (c *NimbleClient) GetDefaultInitiatorGrpId(poolId string, opt *pb.CreateVolumeAttachmentOpts) (string, error) + func (c *NimbleClient) GetPoolIdByName(poolName string) (string, error) + func (c *NimbleClient) GetStorageInitiatorGrpId(poolId string, initiatorIqn string) (string, error) + func (c *NimbleClient) GetStorageSnapshotId(poolId string, baseSnapName string) (string, error) + func (c *NimbleClient) GetStorageVolumeId(poolId string, volName string) (string, error) + func (c *NimbleClient) GetTargetVolumeInfo(poolId string, volName string) (string, string, error) + func (c *NimbleClient) GetTokenByPoolId(poolId string) (string, string, error) + func (c *NimbleClient) ListInitiator(poolId string, initiatorResp *AllInitiatorRespBody) error + func (c *NimbleClient) ListInitiatorGrp(poolId string, initiatorGrpResp *AllInitiatorGrpRespBody) error + func (c *NimbleClient) ListStoragePools() ([]StoragePoolRespData, error) + func (c *NimbleClient) ListVolume(poolId string) (*AllVolumeRespBody, error) + func (c *NimbleClient) OfflineVolume(id string, poolId string) error + func (c *NimbleClient) RegisterInitiatorIntoDefaultGrp(poolId string, opt *pb.CreateVolumeAttachmentOpts, initiatorGrpId string) (*InitiatorRespData, error) + type OfflineVolumeReqBody struct + Data OfflineVolumeReqData + type OfflineVolumeReqData struct + Force bool + Online bool + type SnapshotRespBody struct + Data SnapshotRespData + type SnapshotRespData struct + AccessControlRecords interface{} + AgentType string + AppUuid string + CreationTime int64 + Description string + Id string + IsReplica bool + IsUnmanaged bool + LastModified int64 + Metadata interface{} + Name string + NewDataCompressedBytes int64 + NewDataUncompressedBytes string + NewDataValid bool + OfflineReason string + Online bool + OriginName string + ReplicationStatus interface{} + ScheduleId string + ScheduleName string + SerialNumber string + Size int64 + SnapCollectionId string + SnapCollectionName string + TargetName string + VolId string + VolName string + VpdIeee0 string + VpdIeee1 string + VpdT10 string + Writable bool + type StoragePoolRespData struct + ArrayList []ArrayList + Description string + Endpoint string + FreeCapacity int64 + Id string + Name string + Token string + TotalCapacity int64 + type StoragePoolsRespBody struct + Data []StoragePoolRespData + EndRow int + StartRow int + TotalRows int + type VolumeRespBody struct + Data VolumeRespData + type VolumeRespData struct + AccessControlRecords interface{} + AgentType string + AppCategory string + AppUuid string + AvgStatsLast5mins interface{} + BaseSnapId string + BaseSnapName string + BlockSize int64 + CacheNeededForPin int64 + CachePinned bool + CachePolicy string + CachingEnabled bool + CksumLastVerified int64 + Clone bool + ContentReplErrorsFound bool + CreationTime int64 + DedupeEnabled bool + Description string + DestPoolId string + DestPoolName string + EncryptionCipher string + FcSessions interface{} + FolderId string + FolderName string + FullName string + Id string + IscsiSessions interface{} + LastContentSnapBrCgUid int64 + LastContentSnapBrGid int64 + LastContentSnapId int64 + LastModified int64 + LastReplicatedSnap interface{} + LastSnap interface{} + Limit int64 + LimitIops int64 + LimitMbps int64 + Metadata interface{} + MoveAborting bool + MoveBytesMigrated int64 + MoveBytesRemaining int64 + MoveEstComplTime int64 + MoveStartTime int64 + MultiInitiator bool + Name string + NeedsContentRepl bool + NumConnections int64 + NumFcConnections int64 + NumIscsiConnections int64 + NumSnaps int64 + OfflineReason interface{} + Online bool + OnlineSnaps interface{} + OwnedByGroup string + OwnedByGroupId string + ParentVolId string + ParentVolName string + PerfpolicyId string + PerfpolicyName string + PinnedCacheSize int64 + PoolId int64 + PoolName string + PreviouslyDeduped bool + ProjectedNumSnaps int64 + ProtectionType string + ReadOnly bool + Reserve int64 + SearchName string + SerialNumber string + Size int64 + SnapLimit int64 + SnapLimitPercent int64 + SnapReserve int64 + SnapUsageCompressedBytes int64 + SnapUsagePopulatedBytes int64 + SnapUsageUncompressedBytes int64 + SnapWarnLevel int64 + SpaceUsageLevel string + TargetName string + ThinlyProvisioned bool + TotalUsageBytes int64 + UpstreamCachePinned bool + UsageValid bool + VolState string + VolUsageCompressedBytese int64 + VolUsageUncompressedBytes int64 + VolcollId string + VolcollName string + VpdIeee0 string + VpdIeee1 string + VpdT10 string + WarnLevel int64