util

package
Version: v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2015 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 ContainerHasVolumeMountForName added in v0.6.2

func ContainerHasVolumeMountForName(container *api.Container, volumeName string) bool

ContainerHasVolumeMountForName determines whether the container has a volume mount for the volume with the given name.

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.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL