utils

package
v0.0.0-...-61df992 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2021 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDirFsid

func GetDirFsid(dir string) (syscall.Fsid, error)

Helper to get the filesystem id for a given directory. If error is set fsid is unspecified.

func IsMounted

func IsMounted(mountDir string) bool

Helper to check if something has been mounted under mountDir.

func NfsValidation

func NfsValidation(optSlice []string, optMap map[string]bool) error

Helper to validate the supported NFS options.

func SmbValidation

func SmbValidation(optSlice []string, optMap map[string]bool) error

Helper to validate the supported SMB options.

func ValidateMountOptions

func ValidateMountOptions(options string,
	protoValidation func([]string, map[string]bool) error) error

Helper to validate the supported mount options.

Types

This section is empty.

Jump to

Keyboard shortcuts

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