common

package
v0.10.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 27, 2024 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfigDataRootPath

func GetConfigDataRootPath(configs map[string]string, volID string) string

GetConfigDataRootPath returns a data root path

func GetConfigEnforceProxyAccess

func GetConfigEnforceProxyAccess(configs map[string]string) bool

GetConfigEnforceProxyAccess checks if proxy access is enforced via driver config

func GetConfigMountPathWhitelist

func GetConfigMountPathWhitelist(configs map[string]string) []string

GetConfigMountPathWhitelist returns a whitelist of collections that users can mount

func GetConfigOverlayFSLowerPath added in v0.10.1

func GetConfigOverlayFSLowerPath(configs map[string]string, volID string) string

GetConfigOverlayFSLowerPath returns a lower path for overlayfs

func GetConfigOverlayFSUpperPath added in v0.10.1

func GetConfigOverlayFSUpperPath(configs map[string]string, volID string) string

GetConfigOverlayFSUpperPath returns a upper path for overlayfs

func GetConfigOverlayFSWorkDirPath added in v0.10.1

func GetConfigOverlayFSWorkDirPath(configs map[string]string, volID string) string

GetConfigOverlayFSWorkDirPath returns a work dir path for overlayfs

func IsValidClientType

func IsValidClientType(client string) bool

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

type KernelInfo struct {
	Major int
	Minor int
	Patch int
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL