utils

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2026 License: MIT Imports: 5 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bind

func Bind(sourcePath string, directoryPath string, mountOptions []string) error

Bind mounts a directory to a directory.

func IsMounted

func IsMounted(path string) (bool, error)

IsMounted check if a local path is mount point.

func MountCIFS

func MountCIFS(address string, remotePath string, localPath string, username string, password string, mountOptions []string) error

MountCIFS mounts a CIFS share to a local path.

func MountMock

func MountMock(localPath string) error

MountMock simulates mounting by creating the mount point directory without performing an actual mount.

func MountNFS

func MountNFS(address string, remotePath string, localPath string, mountOptions []string) error

MountNFS mounts an NFS share to a local path.

func Umount

func Umount(localPath string) error

Umount a volume from a local path.

Types

This section is empty.

Jump to

Keyboard shortcuts

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