utils

package
v0.9.5 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: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CorrectSystemUser

func CorrectSystemUser(username string, uid int, gid int) (string, int, int, error)

CorrectSystemUser returns username, uid, gid of given user

func GetCurrentSystemUser

func GetCurrentSystemUser() (string, int, int, error)

GetCurrentSystemUser returns username, uid, gid of current user

func UnmountFuse added in v0.7.9

func UnmountFuse(mountPoint string) (err error)

Unmount calls fusermount -uz on the mount.

Types

type CheckFUSEStatus added in v0.7.9

type CheckFUSEStatus string

CheckFUSEStatus is used to describe FUSE installation state

const (
	CheckFUSEStatusFound     CheckFUSEStatus = "found"
	CheckFUSEStatusNotFound  CheckFUSEStatus = "notfound"
	CheckFUSEStatusCannotRun CheckFUSEStatus = "cannotrun"
	CheckFUSEStatusUnknown   CheckFUSEStatus = "unknown"
)

func CheckDevFuse added in v0.7.9

func CheckDevFuse() CheckFUSEStatus

CheckDevFuse checks FUSE device

func CheckFuse added in v0.7.9

func CheckFuse() CheckFUSEStatus

CheckFuse checks FUSE installation state

Jump to

Keyboard shortcuts

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