Documentation
¶
Index ¶
- func CheckIpReachable(ip string, port int) bool
- type ConncetedSession
- type DSM
- func (dsm *DSM) DsmInfoGet() (*DsmInfo, error)
- func (dsm *DSM) DsmSystemInfoGet() (*DsmSysInfo, error)
- func (dsm *DSM) GetAnotherController() (*DSM, error)
- func (dsm *DSM) IsUC() bool
- func (dsm *DSM) Login() error
- func (dsm *DSM) Logout() error
- func (dsm *DSM) LunClone(spec LunCloneSpec) (string, error)
- func (dsm *DSM) LunCreate(spec LunCreateSpec) (string, error)
- func (dsm *DSM) LunDelete(lunUuid string) error
- func (dsm *DSM) LunGet(uuid string) (LunInfo, error)
- func (dsm *DSM) LunList() ([]LunInfo, error)
- func (dsm *DSM) LunMapTarget(targetIds []string, lunUuid string) error
- func (dsm *DSM) LunUpdate(spec LunUpdateSpec) error
- func (dsm *DSM) NetworkInterfaceList(relayNode string) ([]NetworkInterface, error)
- func (dsm *DSM) NfsGet() (NfsInfo, error)
- func (dsm *DSM) NfsSet(enableV3 bool, enableV4 bool, enabledMinorVer int) error
- func (dsm *DSM) SetShareQuota(shareInfo ShareInfo, newSizeInMB int64) error
- func (dsm *DSM) ShareClone(spec ShareCloneSpec) (string, error)
- func (dsm *DSM) ShareCreate(spec ShareCreateSpec) error
- func (dsm *DSM) ShareDelete(shareName string) error
- func (dsm *DSM) ShareGet(shareName string) (ShareInfo, error)
- func (dsm *DSM) ShareList() ([]ShareInfo, error)
- func (dsm *DSM) ShareNfsPrivilegeSave(privilege SharePrivilege) error
- func (dsm *DSM) SharePermissionList(shareName string, userGroupType string) ([]SharePermission, error)
- func (dsm *DSM) SharePermissionSet(spec SharePermissionSetSpec) error
- func (dsm *DSM) ShareSet(shareName string, updateInfo ShareUpdateInfo) error
- func (dsm *DSM) ShareSnapshotCreate(spec ShareSnapshotCreateSpec) (string, error)
- func (dsm *DSM) ShareSnapshotDelete(snapTime string, shareName string) error
- func (dsm *DSM) ShareSnapshotList(name string) ([]ShareSnapshotInfo, error)
- func (dsm *DSM) SnapshotClone(spec SnapshotCloneSpec) (string, error)
- func (dsm *DSM) SnapshotCreate(spec SnapshotCreateSpec) (string, error)
- func (dsm *DSM) SnapshotDelete(snapshotUuid string) error
- func (dsm *DSM) SnapshotGet(snapshotUuid string) (SnapshotInfo, error)
- func (dsm *DSM) SnapshotList(lunUuid string) ([]SnapshotInfo, error)
- func (dsm *DSM) TargetCreate(spec TargetCreateSpec) (string, error)
- func (dsm *DSM) TargetDelete(targetName string) error
- func (dsm *DSM) TargetGet(targetId string) (TargetInfo, error)
- func (dsm *DSM) TargetList() ([]TargetInfo, error)
- func (dsm *DSM) TargetSet(targetId string, maxSession int) error
- func (dsm *DSM) VolumeGet(name string) (VolInfo, error)
- func (dsm *DSM) VolumeList() ([]VolInfo, error)
- type DsmInfo
- type DsmSysInfo
- type LunCloneSpec
- type LunCreateSpec
- type LunDevAttrib
- type LunInfo
- type LunUpdateSpec
- type MappedLun
- type NetworkInterface
- type NetworkPortal
- type NfsInfo
- type PrivilegeRule
- type Response
- type SecurityFlavor
- type ShareCloneSpec
- type ShareCreateSpec
- type ShareInfo
- type SharePermission
- type SharePermissionSetSpec
- type SharePrivilege
- type ShareSnapshotCreateSpec
- type ShareSnapshotInfo
- type ShareUpdateInfo
- type SnapshotCloneSpec
- type SnapshotCreateSpec
- type SnapshotInfo
- type TargetCreateSpec
- type TargetInfo
- type VolInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckIpReachable ¶ added in v1.1.1
Types ¶
type ConncetedSession ¶
type DSM ¶
type DSM struct { Ip string Port int Username string Password string Sid string Https bool Controller string //new }
func (*DSM) DsmInfoGet ¶
func (*DSM) DsmSystemInfoGet ¶
func (dsm *DSM) DsmSystemInfoGet() (*DsmSysInfo, error)
func (*DSM) GetAnotherController ¶ added in v1.1.1
func (*DSM) LunUpdate ¶
func (dsm *DSM) LunUpdate(spec LunUpdateSpec) error
func (*DSM) NetworkInterfaceList ¶ added in v1.1.1
func (dsm *DSM) NetworkInterfaceList(relayNode string) ([]NetworkInterface, error)
func (*DSM) SetShareQuota ¶ added in v1.1.0
func (*DSM) ShareClone ¶ added in v1.1.0
func (dsm *DSM) ShareClone(spec ShareCloneSpec) (string, error)
func (*DSM) ShareCreate ¶
func (dsm *DSM) ShareCreate(spec ShareCreateSpec) error
func (*DSM) ShareDelete ¶
func (*DSM) ShareNfsPrivilegeSave ¶ added in v1.2.0
func (dsm *DSM) ShareNfsPrivilegeSave(privilege SharePrivilege) error
func (*DSM) SharePermissionList ¶ added in v1.1.0
func (dsm *DSM) SharePermissionList(shareName string, userGroupType string) ([]SharePermission, error)
func (*DSM) SharePermissionSet ¶ added in v1.1.0
func (dsm *DSM) SharePermissionSet(spec SharePermissionSetSpec) error
----------------------- Share Permission APIs -----------------------
func (*DSM) ShareSet ¶ added in v1.1.0
func (dsm *DSM) ShareSet(shareName string, updateInfo ShareUpdateInfo) error
func (*DSM) ShareSnapshotCreate ¶ added in v1.1.0
func (dsm *DSM) ShareSnapshotCreate(spec ShareSnapshotCreateSpec) (string, error)
----------------------- Share Snapshot APIs -----------------------
func (*DSM) ShareSnapshotDelete ¶ added in v1.1.0
func (*DSM) ShareSnapshotList ¶ added in v1.1.0
func (dsm *DSM) ShareSnapshotList(name string) ([]ShareSnapshotInfo, error)
func (*DSM) SnapshotClone ¶
func (dsm *DSM) SnapshotClone(spec SnapshotCloneSpec) (string, error)
func (*DSM) SnapshotCreate ¶
func (dsm *DSM) SnapshotCreate(spec SnapshotCreateSpec) (string, error)
func (*DSM) SnapshotDelete ¶
func (*DSM) SnapshotGet ¶
func (dsm *DSM) SnapshotGet(snapshotUuid string) (SnapshotInfo, error)
func (*DSM) SnapshotList ¶
func (dsm *DSM) SnapshotList(lunUuid string) ([]SnapshotInfo, error)
func (*DSM) TargetCreate ¶
func (dsm *DSM) TargetCreate(spec TargetCreateSpec) (string, error)
func (*DSM) TargetDelete ¶
func (*DSM) TargetList ¶
func (dsm *DSM) TargetList() ([]TargetInfo, error)
func (*DSM) VolumeList ¶
type DsmSysInfo ¶
type LunCloneSpec ¶
type LunCreateSpec ¶
type LunDevAttrib ¶
type LunInfo ¶
type LunInfo struct { Name string `json:"name"` Uuid string `json:"uuid"` LunType int `json:"type"` Location string `json:"location"` Size uint64 `json:"size"` Used uint64 `json:"allocated_size"` Status string `json:"status"` FlashcacheStatus string `json:"flashcache_status"` IsActionLocked bool `json:"is_action_locked"` }
type LunUpdateSpec ¶
type NetworkInterface ¶ added in v1.1.1
type NetworkPortal ¶
type NfsInfo ¶ added in v1.2.0
type NfsInfo struct { EnableNfs bool `json:"enable_nfs"` EnableNfsV4 bool `json:"enable_nfs_v4"` NfsV4Domain string `json:"nfs_v4_domain"` ReadSize int `json:"read_size"` SupportMajorVer int `json:"support_major_ver"` SupportMinorVer int `json:"support_minor_ver"` UnixPriEnable bool `json:"unix_pri_enable"` WriteSize int `json:"write_size"` }
type PrivilegeRule ¶ added in v1.2.0
type SecurityFlavor ¶ added in v1.2.0
type SecurityFlavor struct { Kerbros bool `json:"kerberos"` KerbrosIntegrity bool `json:"kerberos_integrity"` KerbrosPrivacy bool `json:"kerberos_privacy"` Sys bool `json:"sys"` }
----------------------- FileServ NFS SharePrivilege APIs -----------------------
type ShareCloneSpec ¶ added in v1.1.0
type ShareCloneSpec struct {}
type ShareCreateSpec ¶
type ShareCreateSpec struct {}
type SharePermission ¶ added in v1.1.0
type SharePermission struct {}
type SharePermissionSetSpec ¶ added in v1.1.0
type SharePermissionSetSpec struct {}
type SharePrivilege ¶ added in v1.2.0
type SharePrivilege struct {}
type ShareSnapshotCreateSpec ¶ added in v1.1.0
type ShareSnapshotCreateSpec struct {}
type ShareSnapshotInfo ¶ added in v1.1.0
type ShareSnapshotInfo struct {}
type ShareUpdateInfo ¶ added in v1.1.0
type ShareUpdateInfo struct {}
type SnapshotCloneSpec ¶
type SnapshotCreateSpec ¶
type SnapshotInfo ¶
type TargetCreateSpec ¶
type TargetInfo ¶
type TargetInfo struct { Name string `json:"name"` Iqn string `json:"iqn"` Status string `json:"status"` MaxSessions int `json:"max_sessions"` MappedLuns []MappedLun `json:"mapped_luns"` ConnectedSessions []ConncetedSession `json:"connected_sessions"` NetworkPortals []NetworkPortal `json:"network_portals"` TargetId int `json:"target_id"` }
Click to show internal directories.
Click to hide internal directories.