volume

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2017 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package volume provides methods to deal with docker volumes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Volume

type Volume struct {
	// contains filtered or unexported fields
}

Volume is responsible for managing the docker volume.

func New

func New(name string, r runner.Runner) *Volume

New creates a new Volume.

func (*Volume) Close

func (v *Volume) Close() error

Close cleans up the helper container and the docker volume.

func (*Volume) Copy

func (v *Volume) Copy(dir string) error

Copy copies files from a directory dir to the docker volume.

func (*Volume) Setup

func (v *Volume) Setup() error

Setup creates a docker volume and a helper container that can be used to copy data to the volume.

Jump to

Keyboard shortcuts

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