Documentation
¶
Index ¶
- Variables
- type Error
- type Event
- type IGFolder
- type ISCSIPortal
- type Initiator
- type InitiatorGroup
- type Link
- type LunMap
- type PostInitiatorsReq
- type PostInitiatorsResp
- type PostLunMapsReq
- type PostLunMapsResp
- type PostSnapshotsReq
- type PostSnapshotsResp
- type PostVolumesReq
- type PostVolumesResp
- type Ref
- type SnapListItem
- type Snapshot
- type Volume
- type VolumeFolder
- type XMS
- func (xms *XMS) DeleteInitiators(id string, name string) (err error)
- func (xms *XMS) DeleteLunMaps(id string, name string) (err error)
- func (xms *XMS) DeleteSnapshots(id string, name string) (err error)
- func (xms *XMS) DeleteVolumes(id string, name string) (err error)
- func (xms *XMS) GetEvents(severity string) (resp *getEventsResp, err error)
- func (xms *XMS) GetIGFolder(id string, name string) (resp *getIGFolderResp, err error)
- func (xms *XMS) GetIGFolders() (resp *getIGFoldersResp, err error)
- func (xms *XMS) GetISCSIPortal(id string, name string) (resp *getISCSIPortalResp, err error)
- func (xms *XMS) GetISCSIPortals() (resp *getISCSIPortalsResp, err error)
- func (xms *XMS) GetInitiator(id string, name string) (resp *getInitiatorResp, err error)
- func (xms *XMS) GetInitiatorGroup(id string, name string) (resp *getInitiatorGroupResp, err error)
- func (xms *XMS) GetInitiatorGroups() (resp *getInitiatorGroupsResp, err error)
- func (xms *XMS) GetInitiators() (resp *getInitiatorsResp, err error)
- func (xms *XMS) GetLunMap(id string, name string) (resp *getLunMapResp, err error)
- func (xms *XMS) GetLunMaps() (resp *getLunMapsResp, err error)
- func (xms *XMS) GetSnapshot(id string, name string) (resp *getSnapshotResp, err error)
- func (xms *XMS) GetSnapshots() (resp *getSnapshotsResp, err error)
- func (xms *XMS) GetVolume(id string, name string) (resp *getVolumeResp, err error)
- func (xms *XMS) GetVolumeFolder(id string, name string) (resp *getVolumeFolderResp, err error)
- func (xms *XMS) GetVolumeFolders() (resp *getVolumeFoldersResp, err error)
- func (xms *XMS) GetVolumes() (resp *getVolumesResp, err error)
- func (xms *XMS) PostInitiators(req *PostInitiatorsReq) (resp *PostInitiatorsResp, err error)
- func (xms *XMS) PostLunMaps(req *PostLunMapsReq) (resp *PostLunMapsResp, err error)
- func (xms *XMS) PostSnapshots(req *PostSnapshotsReq) (resp *PostSnapshotsResp, err error)
- func (xms *XMS) PostVolumes(req *PostVolumesReq) (resp *PostVolumesResp, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrIdOrNameNotSpecified = errors.New("Either an ID or Name must be specified")
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct {
EntityDetails string `json:"entity_details"`
Severity string `json:"severity"`
Classification string `json:"classification"`
Timestamp string `json:"timestamp"`
Entity string `json:"entity"`
EventCode string `json:"event_code"`
ID int `json:"id"`
Description string `json:"description"`
}
type IGFolder ¶
type IGFolder struct {
SmallIops string `json:"small-iops"`
ObjSeverity string `json:"obj-severity"`
RdBw string `json:"rd-bw"`
UnalignedRdBw string `json:"unaligned-rd-bw"`
Iops string `json:"iops"`
AccNumOfSmallWr string `json:"acc-num-of-small-wr"`
ParentFolderID []interface{} `json:"parent-folder-id"`
AccNumOfRd string `json:"acc-num-of-rd"`
Index int `json:"index"`
SmallRdBw string `json:"small-rd-bw"`
NumOfDirectObjs int `json:"num-of-direct-objs"`
AccSizeOfWr string `json:"acc-size-of-wr"`
NumOfSubfolders int `json:"num-of-subfolders"`
AccNumOfSmallRd string `json:"acc-num-of-small-rd"`
UnalignedRdIops string `json:"unaligned-rd-iops"`
XmsID []interface{} `json:"xms-id"`
SubfolderList []interface{} `json:"subfolder-list"`
UnalignedWrIops string `json:"unaligned-wr-iops"`
AccNumOfUnalignedRd string `json:"acc-num-of-unaligned-rd"`
FolderID []interface{} `json:"folder-id"`
SmallWrBw string `json:"small-wr-bw"`
UnalignedIops string `json:"unaligned-iops"`
UnalignedBw string `json:"unaligned-bw"`
Bw string `json:"bw"`
WrIops string `json:"wr-iops"`
DirectList [][]interface{} `json:"direct-list"`
SmallWrIops string `json:"small-wr-iops"`
RdIops string `json:"rd-iops"`
Name string `json:"name"`
AccNumOfUnalignedWr string `json:"acc-num-of-unaligned-wr"`
AccNumOfWr string `json:"acc-num-of-wr"`
AccSizeOfRd string `json:"acc-size-of-rd"`
Caption string `json:"caption"`
UnalignedWrBw string `json:"unaligned-wr-bw"`
SmallRdIops string `json:"small-rd-iops"`
SmallBw string `json:"small-bw"`
WrBw string `json:"wr-bw"`
}
type ISCSIPortal ¶
type ISCSIPortal struct {
Index int `json:"index"`
PortAddress string `json:"port-address"`
XmsID []interface{} `json:"xms-id"`
Name string `json:"name"`
ObjSeverity string `json:"obj-severity"`
Certainty string `json:"certainty"`
Vlan int `json:"vlan"`
TarID []interface{} `json:"tar-id"`
IPPort int `json:"ip-port"`
IPAddr string `json:"ip-addr"`
GUID string `json:"guid"`
}
type Initiator ¶
type Initiator struct {
SmallIops string `json:"small-iops"`
WrLatency string `json:"wr-latency"`
ChapDiscoveryInitiatorPassword string `json:"chap-discovery-initiator-password"`
ObjSeverity string `json:"obj-severity"`
RdBw string `json:"rd-bw"`
UnalignedRdBw string `json:"unaligned-rd-bw"`
ChapDiscoveryInitiatorUserName string `json:"chap-discovery-initiator-user-name"`
ChapDiscoveryClusterUserName string `json:"chap-discovery-cluster-user-name"`
Iops string `json:"iops"`
NumOfConnTars int `json:"num-of-conn-tars"`
AccNumOfSmallWr string `json:"acc-num-of-small-wr"`
ChapAuthenticationInitiatorPassword string `json:"chap-authentication-initiator-password"`
AccNumOfRd string `json:"acc-num-of-rd"`
Index int `json:"index"`
PortAddress string `json:"port-address"`
SmallRdBw string `json:"small-rd-bw"`
ChapAuthenticationInitiatorUserName string `json:"chap-authentication-initiator-user-name"`
IgID []interface{} `json:"ig-id"`
SmallBw string `json:"small-bw"`
AccSizeOfWr string `json:"acc-size-of-wr"`
AccNumOfSmallRd string `json:"acc-num-of-small-rd"`
UnalignedRdIops string `json:"unaligned-rd-iops"`
ChapDiscoveryClusterPassword string `json:"chap-discovery-cluster-password"`
ChapAuthenticationClusterPassword string `json:"chap-authentication-cluster-password"`
XmsID []interface{} `json:"xms-id"`
UnalignedWrIops string `json:"unaligned-wr-iops"`
AccNumOfUnalignedRd string `json:"acc-num-of-unaligned-rd"`
SmallWrBw string `json:"small-wr-bw"`
UnalignedIops string `json:"unaligned-iops"`
UnalignedBw string `json:"unaligned-bw"`
Bw string `json:"bw"`
WrIops string `json:"wr-iops"`
AvgLatency string `json:"avg-latency"`
RdLatency string `json:"rd-latency"`
SmallWrIops string `json:"small-wr-iops"`
ChapAuthenticationClusterUserName string `json:"chap-authentication-cluster-user-name"`
Name string `json:"name"`
AccNumOfUnalignedWr string `json:"acc-num-of-unaligned-wr"`
AccNumOfWr string `json:"acc-num-of-wr"`
InitiatorID []interface{} `json:"initiator-id"`
AccSizeOfRd string `json:"acc-size-of-rd"`
UnalignedWrBw string `json:"unaligned-wr-bw"`
SmallRdIops string `json:"small-rd-iops"`
InitiatorConnState string `json:"initiator-conn-state"`
RdIops string `json:"rd-iops"`
WrBw string `json:"wr-bw"`
PortType string `json:"port-type"`
}
type InitiatorGroup ¶
type InitiatorGroup struct {
SmallIops string `json:"small-iops"`
NumOfInitiators int `json:"num-of-initiators"`
ObjSeverity string `json:"obj-severity"`
RdBw string `json:"rd-bw"`
UnalignedRdBw string `json:"unaligned-rd-bw"`
Iops string `json:"iops"`
AccNumOfSmallWr string `json:"acc-num-of-small-wr"`
AccNumOfRd string `json:"acc-num-of-rd"`
Index int `json:"index"`
SmallRdBw string `json:"small-rd-bw"`
IgID []interface{} `json:"ig-id"`
AccSizeOfWr string `json:"acc-size-of-wr"`
AccNumOfSmallRd string `json:"acc-num-of-small-rd"`
UnalignedRdIops string `json:"unaligned-rd-iops"`
NumOfVols int `json:"num-of-vols"`
XmsID []interface{} `json:"xms-id"`
UnalignedWrIops string `json:"unaligned-wr-iops"`
AccNumOfUnalignedRd string `json:"acc-num-of-unaligned-rd"`
SmallWrBw string `json:"small-wr-bw"`
UnalignedIops string `json:"unaligned-iops"`
UnalignedBw string `json:"unaligned-bw"`
SmallRdIops string `json:"small-rd-iops"`
WrIops string `json:"wr-iops"`
SmallWrIops string `json:"small-wr-iops"`
SmallBw string `json:"small-bw"`
Name string `json:"name"`
AccNumOfUnalignedWr string `json:"acc-num-of-unaligned-wr"`
AccNumOfWr string `json:"acc-num-of-wr"`
AccSizeOfRd string `json:"acc-size-of-rd"`
UnalignedWrBw string `json:"unaligned-wr-bw"`
Bw string `json:"bw"`
RdIops string `json:"rd-iops"`
WrBw string `json:"wr-bw"`
}
type LunMap ¶
type LunMap struct {
TgName string `json:"tg-name"`
IgIndex int `json:"ig-index"`
XmsID []interface{} `json:"xms-id"`
MappingIndex int `json:"mapping-index"`
ObjSeverity string `json:"obj-severity"`
TgIndex int `json:"tg-index"`
Lun int `json:"lun"`
IgName string `json:"ig-name"`
VolIndex int `json:"vol-index"`
VolName string `json:"vol-name"`
MappingID []interface{} `json:"mapping-id"`
}
type PostInitiatorsReq ¶
type PostInitiatorsReq struct {
IgID int `json:"ig-id,omitempty"`
IgName string `json:"ig-name,omitempty"`
InitiatorName string `json:"initiator-name"`
PortAddress string `json:"port-address"`
InitiatorAuthenticationPassword string `json:"initiator-authentication-password,omitempty"`
InitiatorAuthenticationUserName string `json:"initiator-authentication-user-name,omitempty"`
InitiatorDiscoveryPassword string `json:"initiator-discovery-password,omitempty"`
InitiatorDiscoveryUserName string `json:"initiator-discovery-user-name,omitempty"`
InitiatorChapDiscoveryCredentials string `json:"initiator-chap-discovery-credentials,omitempty"`
}
type PostInitiatorsResp ¶
type PostInitiatorsResp struct {
Links []Link `json:"links"`
}
type PostLunMapsReq ¶
type PostLunMapsResp ¶
type PostLunMapsResp struct {
Links []Link `json:"links"`
}
type PostSnapshotsReq ¶
type PostSnapshotsReq struct {
SnapList []*SnapListItem `json:"snap-list"`
FolderID string `json:"folder-id"`
}
type PostSnapshotsResp ¶
type PostSnapshotsResp struct {
Links []Link `json:"links"`
}
type PostVolumesReq ¶
type PostVolumesResp ¶
type PostVolumesResp struct {
Links []Link `json:"links"`
}
type SnapListItem ¶
type Snapshot ¶
type Snapshot struct {
UnalignedIoAlerts string `json:"unaligned-io-alerts"`
SmallIoAlerts string `json:"small-io-alerts"`
SmallIops string `json:"small-iops"`
DestSnapList []interface{} `json:"dest-snap-list"`
VolID []interface{} `json:"vol-id"`
ObjSeverity string `json:"obj-severity"`
NumOfLunMappings int `json:"num-of-lun-mappings"`
UnalignedRdBw string `json:"unaligned-rd-bw"`
NumOfDestSnaps int `json:"num-of-dest-snaps"`
Iops string `json:"iops"`
AccNumOfSmallWr string `json:"acc-num-of-small-wr"`
AlignmentOffset int `json:"alignment-offset"`
LbSize int `json:"lb-size"`
LogicalSpaceInUse string `json:"logical-space-in-use"`
UnalignedIoRatioLevel string `json:"unaligned-io-ratio-level"`
AccNumOfRd string `json:"acc-num-of-rd"`
Index int `json:"index"`
SmallRdBw string `json:"small-rd-bw"`
NaaName string `json:"naa-name"`
AccSizeOfWr string `json:"acc-size-of-wr"`
AccNumOfSmallRd string `json:"acc-num-of-small-rd"`
UnalignedRdIops string `json:"unaligned-rd-iops"`
WrLatency string `json:"wr-latency"`
SnapgrpID []interface{} `json:"snapgrp-id"`
AncestorVolID []interface{} `json:"ancestor-vol-id"`
VaaiTpAlerts string `json:"vaai-tp-alerts"`
CreationTime string `json:"creation-time"`
RdBw string `json:"rd-bw"`
XmsID []interface{} `json:"xms-id"`
Compressible string `json:"compressible"`
SmallWrBw string `json:"small-wr-bw"`
AccNumOfUnalignedRd string `json:"acc-num-of-unaligned-rd"`
LuName string `json:"lu-name"`
UnalignedIops string `json:"unaligned-iops"`
UnalignedBw string `json:"unaligned-bw"`
Bw string `json:"bw"`
SmallIoRatioLevel string `json:"small-io-ratio-level"`
LunMappingList []interface{} `json:"lun-mapping-list"`
VolSize string `json:"vol-size"`
WrIops string `json:"wr-iops"`
SysID []interface{} `json:"sys-id"`
AvgLatency string `json:"avg-latency"`
RdLatency string `json:"rd-latency"`
SmallWrIops string `json:"small-wr-iops"`
SmallBw string `json:"small-bw"`
Name string `json:"name"`
AccNumOfUnalignedWr string `json:"acc-num-of-unaligned-wr"`
UnalignedWrIops string `json:"unaligned-wr-iops"`
AccNumOfWr string `json:"acc-num-of-wr"`
SmallIoRatio string `json:"small-io-ratio"`
AccSizeOfRd string `json:"acc-size-of-rd"`
UnalignedWrBw string `json:"unaligned-wr-bw"`
SmallRdIops string `json:"small-rd-iops"`
UnalignedIoRatio string `json:"unaligned-io-ratio"`
RdIops string `json:"rd-iops"`
WrBw string `json:"wr-bw"`
}
type Volume ¶
type Volume struct {
UnalignedIoAlerts string `json:"unaligned-io-alerts"`
SmallIoAlerts string `json:"small-io-alerts"`
SmallIops string `json:"small-iops"`
DestSnapList []interface{} `json:"dest-snap-list"`
VolID []interface{} `json:"vol-id"`
ObjSeverity string `json:"obj-severity"`
NumOfLunMappings int `json:"num-of-lun-mappings"`
UnalignedRdBw string `json:"unaligned-rd-bw"`
NumOfDestSnaps int `json:"num-of-dest-snaps"`
Iops string `json:"iops"`
AccNumOfSmallWr string `json:"acc-num-of-small-wr"`
AlignmentOffset int `json:"alignment-offset"`
LbSize int `json:"lb-size"`
LogicalSpaceInUse string `json:"logical-space-in-use"`
UnalignedIoRatioLevel string `json:"unaligned-io-ratio-level"`
AccNumOfRd string `json:"acc-num-of-rd"`
Index int `json:"index"`
SmallRdBw string `json:"small-rd-bw"`
NaaName string `json:"naa-name"`
AccSizeOfWr string `json:"acc-size-of-wr"`
AccNumOfSmallRd string `json:"acc-num-of-small-rd"`
UnalignedRdIops string `json:"unaligned-rd-iops"`
WrLatency string `json:"wr-latency"`
SnapgrpID []interface{} `json:"snapgrp-id"`
AncestorVolID []interface{} `json:"ancestor-vol-id"`
VaaiTpAlerts string `json:"vaai-tp-alerts"`
CreationTime string `json:"creation-time"`
RdBw string `json:"rd-bw"`
XmsID []interface{} `json:"xms-id"`
Compressible string `json:"compressible"`
SmallWrBw string `json:"small-wr-bw"`
AccNumOfUnalignedRd string `json:"acc-num-of-unaligned-rd"`
LuName string `json:"lu-name"`
UnalignedIops string `json:"unaligned-iops"`
UnalignedBw string `json:"unaligned-bw"`
Bw string `json:"bw"`
SmallIoRatioLevel string `json:"small-io-ratio-level"`
LunMappingList [][]interface{} `json:"lun-mapping-list"`
VolSize string `json:"vol-size"`
WrIops string `json:"wr-iops"`
SysID []interface{} `json:"sys-id"`
AvgLatency string `json:"avg-latency"`
RdLatency string `json:"rd-latency"`
SmallWrIops string `json:"small-wr-iops"`
SmallBw string `json:"small-bw"`
Name string `json:"name"`
AccNumOfUnalignedWr string `json:"acc-num-of-unaligned-wr"`
UnalignedWrIops string `json:"unaligned-wr-iops"`
AccNumOfWr string `json:"acc-num-of-wr"`
SmallIoRatio string `json:"small-io-ratio"`
AccSizeOfRd string `json:"acc-size-of-rd"`
UnalignedWrBw string `json:"unaligned-wr-bw"`
SmallRdIops string `json:"small-rd-iops"`
UnalignedIoRatio string `json:"unaligned-io-ratio"`
RdIops string `json:"rd-iops"`
WrBw string `json:"wr-bw"`
}
type VolumeFolder ¶
type VolumeFolder struct {
SmallIops string `json:"small-iops"`
ObjSeverity string `json:"obj-severity"`
RdBw string `json:"rd-bw"`
UnalignedRdBw string `json:"unaligned-rd-bw"`
Iops string `json:"iops"`
AccNumOfSmallWr string `json:"acc-num-of-small-wr"`
ParentFolderID []interface{} `json:"parent-folder-id"`
AccNumOfRd string `json:"acc-num-of-rd"`
Index int `json:"index"`
SmallRdBw string `json:"small-rd-bw"`
NumOfDirectObjs int `json:"num-of-direct-objs"`
AccSizeOfWr string `json:"acc-size-of-wr"`
NumOfSubfolders int `json:"num-of-subfolders"`
AccNumOfSmallRd string `json:"acc-num-of-small-rd"`
UnalignedRdIops string `json:"unaligned-rd-iops"`
EmptyVolBlocks string `json:"empty-vol-blocks"`
NumOfVols int `json:"num-of-vols"`
XmsID []interface{} `json:"xms-id"`
SubfolderList []interface{} `json:"subfolder-list"`
NonEmptyVolBlocks string `json:"non-empty-vol-blocks"`
UnalignedWrIops string `json:"unaligned-wr-iops"`
AccNumOfUnalignedRd string `json:"acc-num-of-unaligned-rd"`
FolderID []interface{} `json:"folder-id"`
SmallWrBw string `json:"small-wr-bw"`
UnalignedIops string `json:"unaligned-iops"`
UnalignedBw string `json:"unaligned-bw"`
Bw string `json:"bw"`
VolSize string `json:"vol-size"`
WrIops string `json:"wr-iops"`
DirectList [][]interface{} `json:"direct-list"`
SmallWrIops string `json:"small-wr-iops"`
SmallBw string `json:"small-bw"`
Name string `json:"name"`
AccNumOfUnalignedWr string `json:"acc-num-of-unaligned-wr"`
AccNumOfWr string `json:"acc-num-of-wr"`
AccSizeOfRd string `json:"acc-size-of-rd"`
Caption string `json:"caption"`
UnalignedWrBw string `json:"unaligned-wr-bw"`
SmallRdIops string `json:"small-rd-iops"`
RdIops string `json:"rd-iops"`
WrBw string `json:"wr-bw"`
}
type XMS ¶
type XMS struct {
// contains filtered or unexported fields
}
func (*XMS) GetIGFolder ¶
func (*XMS) GetIGFolders ¶
func (*XMS) GetISCSIPortal ¶
func (*XMS) GetISCSIPortals ¶
func (*XMS) GetInitiator ¶
func (*XMS) GetInitiatorGroup ¶
func (*XMS) GetInitiatorGroups ¶
func (*XMS) GetInitiators ¶
func (*XMS) GetLunMaps ¶
func (*XMS) GetSnapshot ¶
func (*XMS) GetSnapshots ¶
func (*XMS) GetVolumeFolder ¶
func (*XMS) GetVolumeFolders ¶
func (*XMS) GetVolumes ¶
func (*XMS) PostInitiators ¶
func (xms *XMS) PostInitiators(req *PostInitiatorsReq) (resp *PostInitiatorsResp, err error)
func (*XMS) PostLunMaps ¶
func (xms *XMS) PostLunMaps(req *PostLunMapsReq) (resp *PostLunMapsResp, err error)
func (*XMS) PostSnapshots ¶
func (xms *XMS) PostSnapshots(req *PostSnapshotsReq) (resp *PostSnapshotsResp, err error)
func (*XMS) PostVolumes ¶
func (xms *XMS) PostVolumes(req *PostVolumesReq) (resp *PostVolumesResp, err error)
Click to show internal directories.
Click to hide internal directories.