util

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2016 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Contains utility code for use by volume plugins.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FsInfo added in v1.1.2

func FsInfo(path string) (int64, int64, error)

FSInfo linux returns (available bytes, byte capacity, error) for the filesystem that path resides upon.

func IsReady

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

func SetReady(dir string)

SetReady creates a file called 'ready' in the given directory. It logs an error if the file cannot be created.

Types

This section is empty.

Jump to

Keyboard shortcuts

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