mounter

package
v0.0.0-...-a8b6a46 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2020 License: BSD-3-Clause, BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ForceUnmount

func ForceUnmount(dir string, log Log) error

ForceUnmount tries to forcibly unmount a directory

func IsMounted

func IsMounted(dir string, log Log) (bool, error)

IsMounted returns true if directory is mounted (by kbfuse)

func Unmount

func Unmount(dir string, force bool, log Log) error

Unmount tries to unmount normally and then if force if unsuccessful.

Types

type Log

type Log interface {
	Debug(s string, args ...interface{})
	Info(s string, args ...interface{})
	Errorf(s string, args ...interface{})
}

Log is the logging interface for this package

Jump to

Keyboard shortcuts

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