Documentation
¶
Index ¶
- func GetConfigDataRootPath(configs map[string]string, volID string) string
- func GetConfigEnforceProxyAccess(configs map[string]string) bool
- func GetConfigMountPathWhitelist(configs map[string]string) []string
- func GetConfigOverlayFSLowerPath(configs map[string]string, volID string) string
- func GetConfigOverlayFSUpperPath(configs map[string]string, volID string) string
- func GetConfigOverlayFSWorkDirPath(configs map[string]string, volID string) string
- func IsValidClientType(client string) bool
- type ClientType
- type KernelInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConfigDataRootPath ¶
GetConfigDataRootPath returns a data root path
func GetConfigEnforceProxyAccess ¶
GetConfigEnforceProxyAccess checks if proxy access is enforced via driver config
func GetConfigMountPathWhitelist ¶
GetConfigMountPathWhitelist returns a whitelist of collections that users can mount
func GetConfigOverlayFSLowerPath ¶ added in v0.10.1
GetConfigOverlayFSLowerPath returns a lower path for overlayfs
func GetConfigOverlayFSUpperPath ¶ added in v0.10.1
GetConfigOverlayFSUpperPath returns a upper path for overlayfs
func GetConfigOverlayFSWorkDirPath ¶ added in v0.10.1
GetConfigOverlayFSWorkDirPath returns a work dir path for overlayfs
func IsValidClientType ¶
IsValidClientType checks if given client string is valid
Types ¶
type ClientType ¶
type ClientType string
ClientType is a mount client type
const ( // IrodsFuseClientType is for iRODS FUSE IrodsFuseClientType ClientType = "irodsfuse" // WebdavClientType is for WebDav client (Davfs2) WebdavClientType ClientType = "webdav" // NfsClientType is for NFS client NfsClientType ClientType = "nfs" )
mount driver (iRODS Client) types
func GetClientType ¶
func GetClientType(params map[string]string) ClientType
GetClientType returns iRODS Client value from param map
func GetValidClientType ¶
func GetValidClientType(client string) ClientType
GetValidClientType checks if given client string is valid
type KernelInfo ¶ added in v0.10.1
KernelInfo stores kernel info
func GetKernelInfo ¶ added in v0.10.1
func GetKernelInfo() (*KernelInfo, error)
GetKernelInfo returns kernel info
func (*KernelInfo) HasHigherKernelVersionThan ¶ added in v0.10.1
func (info *KernelInfo) HasHigherKernelVersionThan(major int, minor int, patch int) bool
HasHigherKernelVersionThan returns if the kernel version is higher or equal than given version