Documentation
¶
Index ¶
- Constants
- func Byte2Gib(byteSize int64) int64
- func EncodeName(id string) string
- func Gib2Mebi(gigabyte int64) int64
- func TruncateDescription(desc string) string
- type AccessControlRespBody
- type AccessControlRespData
- type AllAccessControlRespBody
- type AllInitiatorGrpRespBody
- type AllInitiatorRespBody
- type AllSnapshotRespBody
- type AllVolumeRespBody
- type ArrayInnerErrorBody
- type ArrayInnerErrorResp
- type ArrayList
- type AuthOptions
- type AuthRespBody
- type AuthRespData
- type ClinetErrors
- type Config
- type CreateAccessControlReqBody
- type CreateAccessControlReqData
- type CreateInitiatorGrpReqBody
- type CreateInitiatorGrpReqData
- type CreateInitiatorReqBody
- type CreateInitiatorReqData
- type CreateSnapshotReqBody
- type CreateSnapshotReqData
- type CreateVolumeReqBody
- type CreateVolumeReqData
- type Driver
- 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
- type ExtendVolumeReqData
- type ExtendVolumeRespBody
- type InitiatorGrpRespBody
- type InitiatorGrpRespData
- type InitiatorRespBody
- type InitiatorRespData
- type LoginReqBody
- type LoginReqData
- type NimbleClient
- 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
- type OfflineVolumeReqData
- type SnapshotRespBody
- type SnapshotRespData
- type StoragePoolRespData
- type StoragePoolsRespBody
- type VolumeRespBody
- type VolumeRespData
Constants ¶
View Source
const ( FcInitiatorDefaultGrpName = "OsdsFcGrp" IscsiInitiatorDefaultGrpName = "OsdsIscsiGrp" )
View Source
const ( ThickLuntype = 0 ThinLuntype = 1 MaxNameLength = 31 MaxDescriptionLength = 170 PortNumPerContr = 2 PwdExpired = 3 PwdReset = 4 )
View Source
const ( ErrorSmVolSizeDecreased = "SM_vol_size_decreased" ErrorSmHttpConflict = "SM_http_conflict" )
Error Code
View Source
const ( DefaultConfPath = "/etc/opensds/driver/hpe_nimble.yaml" NamePrefix = "opensds" )
View Source
const (
DriverName = "hpe_nimble"
)
View Source
const UnitGi = 1024 * 1024 * 1024
View Source
const UnitMebi = 1024
Variables ¶
This section is empty.
Functions ¶
func EncodeName ¶
func TruncateDescription ¶
Types ¶
type AccessControlRespBody ¶
type AccessControlRespBody struct {
Data AccessControlRespData `json:"data"`
}
type AccessControlRespData ¶
type AccessControlRespData struct { Id string `json:"id"` ApplyTo string `json:"apply_to"` ChapUserId string `json:"chap_user_id"` ChapUserName string `json:"chap_user_name"` InitiatorGroupId string `json:"initiator_group_id"` InitiatorGroupName string `json:"initiator_group_name"` Lun int64 `json:"lun"` VolId string `json:"vol_id"` VolName string `json:"vol_name"` VolAgentType string `json:"vol_agent_type"` PeId string `json:"pe_id"` PeName string `json:"pe_name"` PeLun string `json:"pe_lun"` SnapId string `json:"snap_id"` SnapName string `json:"snap_name"` PeIds []string `json:"pe_ids"` SnapLuns []string `json:"snapluns"` CreationTime int64 `json:"creation_time"` LastModified int64 `json:"last_modified"` AccessProtocol string `json:"access_protocol"` }
type AllAccessControlRespBody ¶
type AllAccessControlRespBody struct { StartRow int `json:"startRow"` EndRow int `json:"endRow"` TotalRows int `json:"totalRows"` Data []AccessControlRespData `json:"data"` }
type AllInitiatorGrpRespBody ¶
type AllInitiatorGrpRespBody struct { StartRow int `json:"startRow"` EndRow int `json:"endRow"` TotalRows int `json:"totalRows"` Data []InitiatorGrpRespData `json:"data"` }
type AllInitiatorRespBody ¶
type AllInitiatorRespBody struct { StartRow int `json:"startRow"` EndRow int `json:"endRow"` TotalRows int `json:"totalRows"` Data []InitiatorRespData `json:"data"` }
type AllSnapshotRespBody ¶
type AllSnapshotRespBody struct { StartRow int `json:"startRow"` EndRow int `json:"endRow"` TotalRows int `json:"totalRows"` Data []SnapshotRespData `json:"data"` }
type AllVolumeRespBody ¶
type AllVolumeRespBody struct { StartRow int `json:"startRow"` EndRow int `json:"endRow"` TotalRows int `json:"totalRows"` Data []VolumeRespData `json:"data"` }
type ArrayInnerErrorBody ¶
type ArrayInnerErrorBody struct {
Errs []ArrayInnerErrorResp `json:"messages"`
}
func (*ArrayInnerErrorBody) Error ¶
func (e *ArrayInnerErrorBody) Error() string
type ArrayInnerErrorResp ¶
type ArrayInnerErrorResp struct { Code string `json:"code"` Severity string `json:"severity"` Text string `json:"text"` }
func (*ArrayInnerErrorResp) Error ¶
func (e *ArrayInnerErrorResp) Error() string
type ArrayList ¶
type ArrayList struct { Id string `json:"id"` ArrayId string `json:"array_id"` Name string `json:"name"` ArrayName string `json:"array_name"` Usage int64 `json:"usage"` UsageValid bool `json:"usage_valid"` Migrate string `json:"migrate"` EvacUsage int64 `json:"evac_usage"` EvacTime int64 `json:"evac_time"` SnapUsageCompressedBytes int64 `json:"snap_usage_compressed_bytes"` UsableCapacity int64 `json:"usable_capacity"` VolUsageCompressedBytes int64 `json:"vol_usage_compressed_bytes"` }
type AuthOptions ¶
type AuthRespBody ¶
type AuthRespBody struct {
Data AuthRespData `json:"data"`
}
type AuthRespData ¶
type ClinetErrors ¶
type ClinetErrors struct {
Errs []error
}
func (*ClinetErrors) Error ¶
func (e *ClinetErrors) Error() string
*****************Original Errors***********************
type Config ¶
type Config struct { AuthOptions `yaml:"authOptions"` Pool map[string]PoolProperties `yaml:"pool,flow"` }
type CreateAccessControlReqBody ¶
type CreateAccessControlReqBody struct {
Data CreateAccessControlReqData `json:"data"`
}
type CreateAccessControlReqData ¶
type CreateAccessControlReqData struct { ApplyTo string `json:"apply_to,omitempty"` ChapUserId string `json:"chap_user_id,omitempty"` InitiatorGroupId string `json:"initiator_group_id,omitempty"` Lun string `json:"lun,omitempty"` VolId string `json:"vol_id,omitempty"` PeId string `json:"pe_id,omitempty"` SnapId string `json:"snap_id,omitempty"` PeIds []string `json:"pe_ids,omitempty"` }
type CreateInitiatorGrpReqBody ¶
type CreateInitiatorGrpReqBody struct {
Data CreateInitiatorGrpReqData `json:"data"`
}
type CreateInitiatorGrpReqData ¶
type CreateInitiatorGrpReqData struct { Name string `json:"name,omitempty"` Description string `json:"description,omitempty"` AccessProtocol string `json:"access_protocol,omitempty"` HostType string `json:"host_type,omitempty"` TargetSubnets []map[string]string `json:"target_subnets,omitempty"` IscsiInitiators []map[string]string `json:"iscsi_initiators,omitempty"` FcInitiators []map[string]string `json:"fc_initiators,omitempty"` AppUuid string `json:"app_uuid,omitempty"` }
type CreateInitiatorReqBody ¶
type CreateInitiatorReqBody struct {
Data CreateInitiatorReqData `json:"data"`
}
type CreateInitiatorReqData ¶
type CreateInitiatorReqData struct { AccessProtocol string `json:"access_protocol,omitempty"` InitiatorGroupId string `json:"initiator_group_id,omitempty"` Label string `json:"label,omitempty"` Iqn string `json:"iqn,omitempty"` IpAddress string `json:"ip_address,omitempty"` Alias string `json:"alias,omitempty"` Wwpn string `json:"wwpn,omitempty"` }
type CreateSnapshotReqBody ¶
type CreateSnapshotReqBody struct {
Data CreateSnapshotReqData `json:"data"`
}
type CreateSnapshotReqData ¶
type CreateSnapshotReqData struct { Name string `json:"name"` Description string `json:"description,omitempty"` VolId string `json:"vol_id"` Online *bool `json:"online,omitempty"` Writable *bool `json:"writable,omitempty"` AppUuid string `json:"app_uuid,omitempty"` Metadata interface{} `json:"metadata,omitempty"` AgentType string `json:"agent_type,omitempty"` }
type CreateVolumeReqBody ¶
type CreateVolumeReqBody struct {
Data CreateVolumeReqData `json:"data"`
}
type CreateVolumeReqData ¶
type CreateVolumeReqData struct { Name string `json:"name"` //not meta Size int64 `json:"size"` //not meta Description string `json:"description,omitempty"` //not meta PerfpolicyId string `json:"perfpolicy_id,omitempty"` Reserve int64 `json:"reserve,omitempty"` WarnLevel int64 `json:"warn_level,omitempty"` Limit int64 `json:"limit,omitempty"` SnapReserve int64 `json:"snap_reserve,omitempty"` //not meta SnapWarnLevel int64 `json:"snap_warn_level,omitempty"` SnapLimit int64 `json:"snap_limit,omitempty"` SnapLimitPercent int64 `json:"snap_limit_percent,omitempty"` Online *bool `json:"online,omitempty"` OwnedByGroupId string `json:"owned_by_group_id,omitempty"` MultiInitiator bool `json:"multi_initiator,omitempty"` PoolId string `json:"pool_id"` //not meta ReadOnly bool `json:"read_only,omitempty"` BlockSize int64 `json:"block_size,omitempty"` Clone bool `json:"clone,omitempty"` BaseSnapId string `json:"base_snap_id,omitempty"` //not meta AgentType string `json:"agent_type,omitempty"` DestPoolId string `json:"dest_pool_id,omitempty"` CachePinned *bool `json:"cache_pinned,omitempty"` EncryptionCipher string `json:"encryption_cipher,omitempty"` AppUuid string `json:"app_uuid,omitempty"` FolderId string `json:"folder_id,omitempty"` Metadata interface{} `json:"metadata,omitempty"` DedupeEnabled *bool `json:"dedupe_enabled,omitempty"` LimitIops int64 `json:"limit_iops,omitempty"` LimitMbps int64 `json:"limit_mbps,omitempty"` }
type Driver ¶
type Driver struct {
// contains filtered or unexported fields
}
func (*Driver) CopyVolume ¶
func (d *Driver) CopyVolume(opt *pb.CreateVolumeOpts, srcid, tgtid string) error
func (*Driver) CreateSnapshot ¶
func (d *Driver) CreateSnapshot(opt *pb.CreateVolumeSnapshotOpts) (*model.VolumeSnapshotSpec, error)
func (*Driver) CreateVolume ¶
func (d *Driver) CreateVolume(opt *pb.CreateVolumeOpts) (*model.VolumeSpec, error)
func (*Driver) CreateVolumeGroup ¶
func (d *Driver) CreateVolumeGroup(opt *pb.CreateVolumeGroupOpts) (*model.VolumeGroupSpec, error)
func (*Driver) DeleteSnapshot ¶
func (d *Driver) DeleteSnapshot(opt *pb.DeleteVolumeSnapshotOpts) error
func (*Driver) DeleteVolume ¶
func (d *Driver) DeleteVolume(opt *pb.DeleteVolumeOpts) error
func (*Driver) DeleteVolumeGroup ¶
func (d *Driver) DeleteVolumeGroup(opt *pb.DeleteVolumeGroupOpts) error
func (*Driver) ExtendVolume ¶
func (d *Driver) ExtendVolume(opt *pb.ExtendVolumeOpts) (*model.VolumeSpec, error)
func (*Driver) InitializeConnection ¶
func (d *Driver) InitializeConnection(opt *pb.CreateVolumeAttachmentOpts) (*model.ConnectionInfo, error)
func (*Driver) InitializeSnapshotConnection ¶
func (d *Driver) InitializeSnapshotConnection(opt *pb.CreateSnapshotAttachmentOpts) (*model.ConnectionInfo, error)
The interfaces blow are optional, so implement it or not depends on you.
func (*Driver) PullSnapshot ¶
func (d *Driver) PullSnapshot(snapIdentifier string) (*model.VolumeSnapshotSpec, error)
func (*Driver) PullVolume ¶
func (d *Driver) PullVolume(volIdentifier string) (*model.VolumeSpec, error)
func (*Driver) TerminateConnection ¶
func (d *Driver) TerminateConnection(opt *pb.DeleteVolumeAttachmentOpts) error
func (*Driver) TerminateSnapshotConnection ¶
func (d *Driver) TerminateSnapshotConnection(opt *pb.DeleteSnapshotAttachmentOpts) error
func (*Driver) UpdateVolumeGroup ¶
func (d *Driver) UpdateVolumeGroup(opt *pb.UpdateVolumeGroupOpts) (*model.VolumeGroupSpec, error)
type ExtendVolumeReqBody ¶
type ExtendVolumeReqBody struct {
Data ExtendVolumeReqData `json:"data"`
}
type ExtendVolumeReqData ¶
type ExtendVolumeReqData struct { Name string `json:"name,omitempty"` Size int64 `json:"size"` //not meta Description string `json:"description,omitempty"` PerfpolicyId string `json:"perfpolicy_id,omitempty"` Reserve int64 `json:"reserve,omitempty"` WarnLevel int64 `json:"warn_level,omitempty"` Limit int64 `json:"limit,omitempty"` SnapReserve int64 `json:"snap_reserve,omitempty"` //not meta SnapWarnLevel int64 `json:"snap_warn_level,omitempty"` SnapLimit int64 `json:"snap_limit,omitempty"` SnapLimitPercent int64 `json:"snap_limit_percent,omitempty"` Online *bool `json:"online,omitempty"` OwnedByGroupId string `json:"owned_by_group_id,omitempty"` MultiInitiator bool `json:"multi_initiator,omitempty"` ReadOnly bool `json:"read_only,omitempty"` BlockSize int64 `json:"block_size,omitempty"` VolcollId string `json:"volcoll_id,omitempty"` AgentType string `json:"agent_type,omitempty"` Force *bool `json:"force,omitempty"` CachePinned *bool `json:"cache_pinned,omitempty"` AppUuid string `json:"app_uuid,omitempty"` FolderId string `json:"folder_id,omitempty"` Metadata interface{} `json:"metadata,omitempty"` CachingEnabled *bool `json:"caching_enabled,omitempty"` DedupeEnabled *bool `json:"dedupe_enabled,omitempty"` LimitIops int64 `json:"limit_iops,omitempty"` LimitMbps int64 `json:"limit_mbps,omitempty"` }
type ExtendVolumeRespBody ¶
type ExtendVolumeRespBody struct {
Data VolumeRespData `json:"data"`
}
type InitiatorGrpRespBody ¶
type InitiatorGrpRespBody struct {
Data InitiatorGrpRespData `json:"data"`
}
type InitiatorGrpRespData ¶
type InitiatorGrpRespData struct { Id string `json:"id"` Name string `json:"name"` FullName string `json:"full_name"` SearchName string `json:"search_name"` Description string `json:"description"` AccessProtocol string `json:"access_protocol"` HostType string `json:"host_type"` TargetSubnets []map[string]string `json:"target_subnets"` IscsiInitiators []map[string]string `json:"iscsi_initiators"` FcInitiators []map[string]string `json:"fc_initiators"` CreationTime int64 `json:"creation_time"` LastModified int64 `json:"last_modified"` AppUuid string `json:"app_uuid"` VolumeCount string `json:"volume_count"` VolumeList []map[string]string `json:"volume_list"` NumConnections int64 `json:"num_connections"` }
type InitiatorRespBody ¶
type InitiatorRespBody struct {
Data InitiatorRespData `json:"data"`
}
type InitiatorRespData ¶
type InitiatorRespData struct { Id string `json:"id"` AccessProtocol string `json:"access_protocol"` InitiatorGroupId string `json:"initiator_group_id"` InitiatorGroupName string `json:"initiator_group_name"` Label string `json:"label"` Iqn string `json:"iqn"` IpAddress string `json:"ip_address"` Alias string `json:"alias"` Wwpn string `json:"wwpn"` CreationTime int64 `json:"creation_time"` LastModified int64 `json:"last_modified"` }
type LoginReqBody ¶
type LoginReqBody struct {
Data LoginReqData `json:"data"`
}
type LoginReqData ¶
type NimbleClient ¶
type NimbleClient struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(opt *AuthOptions) (*NimbleClient, error)
func (*NimbleClient) AttachVolume ¶
func (c *NimbleClient) AttachVolume(poolId string, volName string, initiatorGrpId string) (*AccessControlRespData, error)
func (*NimbleClient) CreateInitiatorDefaultGrp ¶
func (c *NimbleClient) CreateInitiatorDefaultGrp(poolId string, opt *pb.CreateVolumeAttachmentOpts) (*InitiatorGrpRespData, error)
func (*NimbleClient) CreateSnapshot ¶
func (c *NimbleClient) CreateSnapshot(poolId string, opt *pb.CreateVolumeSnapshotOpts) (*SnapshotRespData, error)
func (*NimbleClient) CreateVolume ¶
func (c *NimbleClient) CreateVolume(poolId string, opt *pb.CreateVolumeOpts) (*VolumeRespData, error)
func (*NimbleClient) DeleteSnapshot ¶
func (c *NimbleClient) DeleteSnapshot(poolId string, opt *pb.DeleteVolumeSnapshotOpts) error
func (*NimbleClient) DeleteVolume ¶
func (c *NimbleClient) DeleteVolume(poolId string, opt *pb.DeleteVolumeOpts) error
func (*NimbleClient) DetachVolume ¶
func (c *NimbleClient) DetachVolume(poolId string, storageAceessId string) error
func (*NimbleClient) ExtendVolume ¶
func (c *NimbleClient) ExtendVolume(poolId string, opt *pb.ExtendVolumeOpts) (*VolumeRespData, error)
func (*NimbleClient) GetDefaultInitiatorGrpId ¶
func (c *NimbleClient) GetDefaultInitiatorGrpId(poolId string, opt *pb.CreateVolumeAttachmentOpts) (string, error)
func (*NimbleClient) GetPoolIdByName ¶
func (c *NimbleClient) GetPoolIdByName(poolName string) (string, error)
func (*NimbleClient) GetStorageInitiatorGrpId ¶
func (c *NimbleClient) GetStorageInitiatorGrpId(poolId string, initiatorIqn string) (string, error)
func (*NimbleClient) GetStorageSnapshotId ¶
func (c *NimbleClient) GetStorageSnapshotId(poolId string, baseSnapName string) (string, error)
func (*NimbleClient) GetStorageVolumeId ¶
func (c *NimbleClient) GetStorageVolumeId(poolId string, volName string) (string, error)
func (*NimbleClient) GetTargetVolumeInfo ¶
func (*NimbleClient) GetTokenByPoolId ¶
func (c *NimbleClient) GetTokenByPoolId(poolId string) (string, string, error)
func (*NimbleClient) ListInitiator ¶
func (c *NimbleClient) ListInitiator(poolId string, initiatorResp *AllInitiatorRespBody) error
func (*NimbleClient) ListInitiatorGrp ¶
func (c *NimbleClient) ListInitiatorGrp(poolId string, initiatorGrpResp *AllInitiatorGrpRespBody) error
func (*NimbleClient) ListStoragePools ¶
func (c *NimbleClient) ListStoragePools() ([]StoragePoolRespData, error)
func (*NimbleClient) ListVolume ¶
func (c *NimbleClient) ListVolume(poolId string) (*AllVolumeRespBody, error)
func (*NimbleClient) OfflineVolume ¶
func (c *NimbleClient) OfflineVolume(id string, poolId string) error
func (*NimbleClient) RegisterInitiatorIntoDefaultGrp ¶
func (c *NimbleClient) RegisterInitiatorIntoDefaultGrp(poolId string, opt *pb.CreateVolumeAttachmentOpts, initiatorGrpId string) (*InitiatorRespData, error)
type OfflineVolumeReqBody ¶
type OfflineVolumeReqBody struct {
Data OfflineVolumeReqData `json:"data"`
}
type OfflineVolumeReqData ¶
type SnapshotRespBody ¶
type SnapshotRespBody struct {
Data SnapshotRespData `json:"data"`
}
type SnapshotRespData ¶
type SnapshotRespData struct { AccessControlRecords interface{} `json:"access_control_records"` AgentType string `json:"agent_type"` AppUuid string `json:"app_uuid"` CreationTime int64 `json:"creation_time"` Description string `json:"description"` Id string `json:"id"` IsReplica bool `json:"is_replica"` IsUnmanaged bool `json:"is_unmanaged"` LastModified int64 `json:"last_modified"` Metadata interface{} `json:"metadata"` Name string `json:"name"` NewDataCompressedBytes int64 `json:"new_data_compressed_bytes"` NewDataUncompressedBytes string `json:"new_data_uncompressed_bytes"` NewDataValid bool `json:"new_data_valid"` OfflineReason string `json:"offline_reason"` Online bool `json:"online"` OriginName string `json:"origin_name"` ReplicationStatus interface{} `json:"replication_status"` ScheduleId string `json:"schedule_id"` ScheduleName string `json:"schedule_name"` SerialNumber string `json:"serial_number"` Size int64 `json:"size"` SnapCollectionId string `json:"snap_collection_id"` SnapCollectionName string `json:"snap_collection_name"` TargetName string `json:"target_name"` VolId string `json:"vol_id"` VolName string `json:"vol_name"` VpdIeee0 string `json:"vpd_ieee0"` VpdIeee1 string `json:"vpd_ieee1"` VpdT10 string `json:"vpd_t10"` Writable bool `json:"writable"` }
type StoragePoolRespData ¶
type StoragePoolsRespBody ¶
type StoragePoolsRespBody struct { StartRow int `json:"startRow"` EndRow int `json:"endRow"` TotalRows int `json:"totalRows"` Data []StoragePoolRespData `json:"data"` }
type VolumeRespBody ¶
type VolumeRespBody struct {
Data VolumeRespData `json:"data"`
}
type VolumeRespData ¶
type VolumeRespData struct { AgentType string `json:"agent_type"` AppCategory string `json:"app_category"` AppUuid string `json:"app_uuid"` AvgStatsLast5mins interface{} `json:"avg_stats_last_5mins"` BaseSnapId string `json:"base_snap_id"` BaseSnapName string `json:"base_snap_name"` BlockSize int64 `json:"block_size"` CacheNeededForPin int64 `json:"cache_needed_for_pin"` CachePinned bool `json:"cache_pinned"` CachePolicy string `json:"cache_policy"` CachingEnabled bool `json:"caching_enabled"` CksumLastVerified int64 `json:"cksum_last_verified"` Clone bool `json:"clone"` ContentReplErrorsFound bool `json:"content_repl_errors_found"` CreationTime int64 `json:"creation_time"` DedupeEnabled bool `json:"dedupe_enabled"` Description string `json:"description"` DestPoolId string `json:"dest_pool_id"` DestPoolName string `json:"dest_pool_name"` EncryptionCipher string `json:"encryption_cipher"` FolderId string `json:"folder_id"` FolderName string `json:"folder_name"` FullName string `json:"full_name"` Id string `json:"id"` LastContentSnapBrCgUid int64 `json:"last_content_snap_br_cg_uid"` LastContentSnapBrGid int64 `json:"last_content_snap_br_gid"` LastContentSnapId int64 `json:"last_content_snap_id"` LastModified int64 `json:"last_modified"` LastReplicatedSnap interface{} `json:"last_replicated_snap"` LastSnap interface{} `json:"last_snap"` Limit int64 `json:"limit"` LimitIops int64 `json:"limit_iops"` LimitMbps int64 `json:"limit_mbps"` Metadata interface{} `json:"metadata"` MoveAborting bool `json:"move_aborting"` MoveBytesMigrated int64 `json:"move_bytes_migrated"` MoveBytesRemaining int64 `json:"move_bytes_remaining"` MoveEstComplTime int64 `json:"move_est_compl_time"` MoveStartTime int64 `json:"move_start_time"` MultiInitiator bool `json:"multi_initiator"` Name string `json:"name"` NeedsContentRepl bool `json:"needs_content_repl"` NumConnections int64 `json:"num_connections"` NumFcConnections int64 `json:"num_fc_connections"` NumIscsiConnections int64 `json:"num_iscsi_connections"` NumSnaps int64 `json:"num_snaps"` OfflineReason interface{} `json:"offline_reason"` Online bool `json:"online"` OnlineSnaps interface{} `json:"online_snaps"` OwnedByGroup string `json:"owned_by_group"` OwnedByGroupId string `json:"owned_by_group_id"` ParentVolId string `json:"parent_vol_id"` ParentVolName string `json:"parent_vol_name"` PerfpolicyId string `json:"perfpolicy_id"` PerfpolicyName string `json:"perfpolicy_name"` PinnedCacheSize int64 `json:"pinned_cache_size"` PoolId int64 `json:"pool_id"` PoolName string `json:"pool_name"` PreviouslyDeduped bool `json:"previously_deduped"` ProjectedNumSnaps int64 `json:"projected_num_snaps"` ProtectionType string `json:"protection_type"` ReadOnly bool `json:"read_only"` Reserve int64 `json:"reserve"` SearchName string `json:"search_name"` SerialNumber string `json:"serial_number"` Size int64 `json:"size"` SnapLimit int64 `json:"snap_limit"` SnapLimitPercent int64 `json:"snap_limit_percent"` SnapReserve int64 `json:"snap_reserve"` SnapUsageCompressedBytes int64 `json:"snap_usage_compressed_bytes"` SnapUsagePopulatedBytes int64 `json:"snap_usage_populated_bytes"` SnapUsageUncompressedBytes int64 `json:"snap_usage_uncompressed_bytes"` SnapWarnLevel int64 `json:"snap_warn_level"` SpaceUsageLevel string `json:"space_usage_level"` TargetName string `json:"target_name"` ThinlyProvisioned bool `json:"thinly_provisioned"` TotalUsageBytes int64 `json:"total_usage_bytes"` UpstreamCachePinned bool `json:"upstream_cache_pinned"` UsageValid bool `json:"usage_valid"` VolState string `json:"vol_state"` VolUsageCompressedBytese int64 `json:"vol_usage_compressed_bytes"` VolUsageUncompressedBytes int64 `json:"vol_usage_uncompressed_bytes"` VolcollId string `json:"volcoll_id"` VolcollName string `json:"volcoll_name"` VpdIeee0 string `json:"vpd_ieee0"` VpdIeee1 string `json:"vpd_ieee1"` VpdT10 string `json:"vpd_t10"` WarnLevel int64 `json:"warn_level"` IscsiSessions interface{} `json:"iscsi_sessions"` FcSessions interface{} `json:"fc_sessions"` AccessControlRecords interface{} `json:"access_control_records"` }
Click to show internal directories.
Click to hide internal directories.