volume

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2020 License: Apache-2.0 Imports: 4 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(ctx context.Context) error

Close cleans up the helper container and the docker volume.

func (*Volume) Copy

func (v *Volume) Copy(ctx context.Context, dir string) error

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

func (*Volume) Export added in v0.2.5

func (v *Volume) Export(ctx context.Context, dir string) error

Export copies files from a docker volume to a directory.

func (*Volume) Setup

func (v *Volume) Setup(ctx context.Context) 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