Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/SynologyOpenSource/synology-csi
/ functions
Functions
322 in github.com/SynologyOpenSource/synology-csi
⨍
Functions
322
◇
Types & classes
114
↓ 117 callers
Method
Error
ISCSI errors
pkg/utils/error.go:46
↓ 51 callers
Method
sendRequest
(data string, apiTemplate interface{}, params url.Values, cgiPath string)
pkg/dsm/webapi/dsmwebapi.go:53
↓ 17 callers
Function
errCodeMapping
(errCode int, oriErr error)
pkg/dsm/webapi/iscsi.go:85
↓ 15 callers
Function
sanErrCodeMapping
(errCode int, oriErr error)
pkg/dsm/webapi/nvmeof.go:60
↓ 13 callers
Method
Logout
Logout on current IP and reset the synoToken
pkg/dsm/webapi/dsmwebapi.go:204
↓ 12 callers
Method
CombinedOutput
()
pkg/utils/hostexec/hostexec_test.go:311
↓ 11 callers
Function
shareErrCodeMapping
(errCode int, oriErr error)
pkg/dsm/webapi/share.go:91
↓ 10 callers
Function
LoginDsmForTest
Always get the first client from ClientInfo for synocli testing
synocli/cmd/dsm.go:79
↓ 10 callers
Method
ShareGet
----------------------- Share APIs -----------------------
pkg/dsm/webapi/share.go:112
↓ 8 callers
Function
BytesToMBCeil
Ceiling
pkg/utils/utils.go:46
↓ 7 callers
Method
GetDsm
(ip string)
pkg/dsm/service/dsm.go:76
↓ 7 callers
Method
GetVolume
(volId string)
pkg/interfaces/IDsmService.go:22
↓ 6 callers
Method
Command
(string, ...string)
pkg/utils/hostexec/hostexec.go:28
↓ 6 callers
Method
Login
Login by given user name and password
pkg/dsm/webapi/dsmwebapi.go:173
↓ 6 callers
Method
LunGet
(uuid string)
pkg/dsm/webapi/iscsi.go:187
↓ 6 callers
Method
ShareSnapshotList
(name string)
pkg/dsm/webapi/share.go:284
↓ 6 callers
Function
StringToBoolean
(value string)
pkg/utils/utils.go:50
↓ 6 callers
Method
iscsiadm
(cmdArgs ...string)
pkg/driver/initiator.go:61
↓ 5 callers
Function
DsmSanSnapshotToK8sSnapshot
(dsmIp string, info webapi.SnapshotInfo, protocol string)
pkg/dsm/service/dsm.go:1016
↓ 5 callers
Function
DsmShareToK8sVolume
(dsmIp string, info webapi.ShareInfo, protocol string)
pkg/dsm/service/dsm.go:402
↓ 5 callers
Method
GetVolume
(volId string)
pkg/dsm/service/dsm.go:697
↓ 5 callers
Method
NamespaceGet
(uuidOrName string)
pkg/dsm/webapi/nvmeof.go:169
↓ 5 callers
Method
Run
()
pkg/utils/hostexec/hostexec_test.go:310
↓ 5 callers
Function
readTrimFile
(path string)
pkg/driver/nvme_connector.go:77
↓ 4 callers
Function
DsmLunToK8sVolume
(dsmIp string, info webapi.LunInfo, targetInfo webapi.TargetInfo)
pkg/dsm/service/dsm.go:424
↓ 4 callers
Function
DsmNamespaceToK8sVolume
(dsmIp string, info webapi.NamespaceInfo, subsystemInfo webapi.SubsystemInfo)
pkg/dsm/service/dsm.go:438
↓ 4 callers
Function
ListDsms
(id int)
synocli/cmd/dsm.go:93
↓ 4 callers
Method
ShareList
()
pkg/dsm/webapi/share.go:127
↓ 4 callers
Method
sendRequestWithoutConnectionCheck
(data string, apiTemplate interface{}, params url.Values, cgiPath string)
pkg/dsm/webapi/dsmwebapi.go:67
↓ 4 callers
Function
waitCloneFinished
(dsm *webapi.DSM, name string, protocol string)
pkg/dsm/service/dsm.go:274
↓ 3 callers
Method
DsmSystemInfoGet
(infoType string)
pkg/dsm/webapi/systeminfo.go:53
↓ 3 callers
Method
GetDsm
(ip string)
pkg/interfaces/IDsmService.go:16
↓ 3 callers
Method
IsMultipathEnabled
IsMultipathEnabled returns true if multipath is enabled
pkg/driver/multipath.go:35
↓ 3 callers
Function
LoadConfig
(configPath string)
pkg/dsm/common/config.go:25
↓ 3 callers
Function
LookupIPv4
Haven't supported IPv6 yet.
pkg/utils/utils.go:67
↓ 3 callers
Function
MBToBytes
(size int64)
pkg/utils/utils.go:37
↓ 3 callers
Function
New
New creates an instance of hostexec to execute commands in the given environment
pkg/utils/hostexec/hostexec.go:39
↓ 3 callers
Method
SetShareQuota
(shareInfo ShareInfo, newSizeInMB int64)
pkg/dsm/webapi/share.go:243
↓ 3 callers
Method
ShareClone
(spec ShareCloneSpec)
pkg/dsm/webapi/share.go:169
↓ 3 callers
Method
Stop
Stops the service gracefully
pkg/driver/grpc.go:39
↓ 3 callers
Method
SubsystemGet
(uuid string)
pkg/dsm/webapi/nvmeof.go:351
↓ 3 callers
Method
VolumeGet
(name string)
pkg/dsm/webapi/storage.go:48
↓ 3 callers
Method
createMappingSubsystem
(dsm *webapi.DSM, spec *models.CreateK8sVolumeSpec, namespaceUuid string)
pkg/dsm/service/namespace_volume.go:20
↓ 3 callers
Method
createMappingTarget
(dsm *webapi.DSM, spec *models.CreateK8sVolumeSpec, lunUuid string)
pkg/dsm/service/dsm.go:160
↓ 3 callers
Method
getFirstAvailableVolume
(dsm *webapi.DSM, sizeInBytes int64, protocol string)
pkg/dsm/service/dsm.go:107
↓ 3 callers
Function
getSizeByCapacityRange
(capRange *csi.CapacityRange)
pkg/driver/controllerserver.go:45
↓ 3 callers
Function
getVolumeMountPath
for publish, stage volume
pkg/driver/nodeserver.go:120
↓ 3 callers
Method
hasSession
(targetIqn string, portal string)
pkg/driver/initiator.go:175
↓ 3 callers
Method
listSMBorNFSSnapshotsByDsm
(dsm *webapi.DSM)
pkg/dsm/service/share_volume.go:224
↓ 3 callers
Method
nvme
(cmdArgs ...string)
pkg/driver/nvme_connector.go:36
↓ 3 callers
Function
waitForDevicePathToExist
(path string)
pkg/driver/nodeserver.go:53
↓ 3 callers
Method
wrap
(cmd string, args ...string)
pkg/utils/hostexec/hostexec.go:83
↓ 2 callers
Method
Activate
()
pkg/driver/driver.go:38
↓ 2 callers
Method
AddDsm
(client common.ClientInfo)
pkg/dsm/service/dsm.go:34
↓ 2 callers
Function
BytesToMB
(size int64)
pkg/utils/utils.go:41
↓ 2 callers
Method
CommandContext
(context.Context, string, ...string)
pkg/utils/hostexec/hostexec.go:29
↓ 2 callers
Function
DsmShareSnapshotToK8sSnapshot
(dsmIp string, info webapi.ShareSnapshotInfo, shareInfo webapi.ShareInfo, protocol string)
pkg/dsm/service/dsm.go:1000
↓ 2 callers
Function
GenBackendName
(volName string)
pkg/models/dsm.go:42
↓ 2 callers
Function
GenShareName
(volName string)
pkg/models/dsm.go:46
↓ 2 callers
Method
GetSnapshotByUuid
(snapshotUuid string)
pkg/dsm/service/dsm.go:869
↓ 2 callers
Method
IsUC
()
pkg/dsm/webapi/utils.go:14
↓ 2 callers
Method
ListAllSnapshots
()
pkg/dsm/service/dsm.go:942
↓ 2 callers
Method
ListVolumes
()
pkg/dsm/service/dsm.go:689
↓ 2 callers
Method
NamespaceSnapshotGet
(snapshotUuid string)
pkg/dsm/webapi/nvmeof.go:239
↓ 2 callers
Method
NamespaceSnapshotList
(srcUuid string)
pkg/dsm/webapi/nvmeof.go:215
↓ 2 callers
Method
NetworkInterfaceList
(relayNode string)
pkg/dsm/webapi/systeminfo.go:76
↓ 2 callers
Function
NewControllerAndNodeDriver
(nodeID string, endpoint string, dsmService interfaces.IDsmService, tools tools)
pkg/driver/driver.go:54
↓ 2 callers
Function
NewDsmService
()
pkg/dsm/service/dsm.go:28
↓ 2 callers
Function
NewTools
NewTools creates a new tools wrapper for calling utilities with given executor
pkg/driver/initiator.go:55
↓ 2 callers
Method
RemoveAllDsms
()
pkg/dsm/service/dsm.go:61
↓ 2 callers
Method
ShareCreate
(spec ShareCreateSpec)
pkg/dsm/webapi/share.go:151
↓ 2 callers
Method
ShareDelete
(shareName string)
pkg/dsm/webapi/share.go:209
↓ 2 callers
Method
SharePermissionList
(shareName string, userGroupType string)
pkg/dsm/webapi/share.go:355
↓ 2 callers
Method
SharePermissionSet
----------------------- Share Permission APIs -----------------------
pkg/dsm/webapi/share.go:332
↓ 2 callers
Method
ShareSet
(shareName string, updateInfo ShareUpdateInfo)
pkg/dsm/webapi/share.go:221
↓ 2 callers
Method
ShareSnapshotCreate
----------------------- Share Snapshot APIs -----------------------
pkg/dsm/webapi/share.go:253
↓ 2 callers
Method
ShareSnapshotDelete
(snapTime string, shareName string)
pkg/dsm/webapi/share.go:310
↓ 2 callers
Function
SliceContains
(items []string, s string)
pkg/utils/utils.go:28
↓ 2 callers
Method
SnapshotList
(lunUuid string)
pkg/dsm/webapi/iscsi.go:431
↓ 2 callers
Function
StringToSlice
(value string)
pkg/utils/utils.go:55
↓ 2 callers
Method
TargetGet
(targetId string)
pkg/dsm/webapi/iscsi.go:257
↓ 2 callers
Method
VolumeList
()
pkg/dsm/webapi/storage.go:22
↓ 2 callers
Method
createSMBorNFSVolumeByDsm
(dsm *webapi.DSM, spec *models.CreateK8sVolumeSpec)
pkg/dsm/service/share_volume.go:130
↓ 2 callers
Function
createTargetMountPath
(mounter mount.Interface, mountPath string, isBlock bool)
pkg/driver/nodeserver.go:165
↓ 2 callers
Function
getExistedNvmeDevPath
(subsysNqn string, uuid string)
pkg/driver/nodeserver.go:88
↓ 2 callers
Method
getExistedVolumeMountPath
for unstage, resize volume
pkg/driver/nodeserver.go:77
↓ 2 callers
Method
isVolumeAccessModeSupport
(mode csi.VolumeCapability_AccessMode_Mode)
pkg/driver/controllerserver.go:62
↓ 2 callers
Method
iscsiadm_session
()
pkg/driver/initiator.go:95
↓ 2 callers
Method
listISCSISnapshotsByDsm
(dsm *webapi.DSM)
pkg/dsm/service/dsm.go:925
↓ 2 callers
Method
listISCSIVolumes
(dsmIp string)
pkg/dsm/service/dsm.go:657
↓ 2 callers
Method
listNVMeVolumes
(dsmIp string)
pkg/dsm/service/namespace_volume.go:195
↓ 2 callers
Method
listSMBorNFSVolumes
(dsmIp string)
pkg/dsm/service/share_volume.go:187
↓ 2 callers
Method
loginNVMeSubsystem
(volumeId string)
pkg/driver/nodeserver.go:221
↓ 2 callers
Method
loginTarget
(volumeId string)
pkg/driver/nodeserver.go:269
↓ 2 callers
Method
resolveCmd
(cmd string, args ...string)
pkg/utils/hostexec/hostexec.go:51
↓ 2 callers
Method
wrapChroot
(cmd string, args ...string)
pkg/utils/hostexec/hostexec.go:72
↓ 2 callers
Method
wrapEnv
(cmd string, args ...string)
pkg/utils/hostexec/hostexec.go:60
↓ 1 callers
Function
BoolToInt
(value bool)
pkg/utils/utils.go:59
↓ 1 callers
Function
CheckIpReachable
(ip string, port int)
pkg/dsm/webapi/utils.go:78
↓ 1 callers
Method
Command
(cmd string, args ...string)
pkg/utils/hostexec/hostexec.go:91
next →
1–100 of 322, ranked by callers