mounter

package
v1.0.40 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2018 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 forceably 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 added in v1.0.17

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