kubernetesk8s.io/kubernetes/pkg/volume/util Index | Files

package util

import "k8s.io/kubernetes/pkg/volume/util"

Contains utility code for use by volume plugins.

Index

Functions

func FsInfo

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.

Source Files

doc.go fs_linux.go util.go

Version
v1.2.0-alpha.6
Published
Jan 13, 2016
Platform
linux/amd64
Imports
4 packages
Last checked
11 minutes ago

Tools for package owners.