package
Version:
v1.2.0-alpha.7
Opens a new window with list of versions in this module.
Published: Feb 2, 2016
License: Apache-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Contains utility code for use by volume plugins.
func FsInfo(path string) (int64, int64, error)
FSInfo linux returns (available bytes, byte capacity, error) for the filesystem that
path resides upon.
func IsReady(dir string) bool
IsReady checks for the existence of a regular file
called 'ready' in the given directory and returns
true if that file exists.
func SetReady(dir string)
SetReady creates a file called 'ready' in the given
directory. It logs an error if the file cannot be
created.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.