volumedriver

package module
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2021 License: Apache-2.0 Imports: 16 Imported by: 10

README

a volman driver for NFS

This driver is intended for test purposes only. Watch this space in case that changes...

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mounter

type Mounter interface {
	Mount(env dockerdriver.Env, source string, target string, opts map[string]interface{}) error
	Unmount(env dockerdriver.Env, target string) error
	Check(env dockerdriver.Env, name, mountPoint string) bool
	Purge(env dockerdriver.Env, path string)
}

type NfsVolumeInfo

type NfsVolumeInfo struct {
	Opts map[string]interface{} `json:"-"` // don't store opts

	dockerdriver.VolumeInfo // see dockerdriver.resources.go
	// contains filtered or unexported fields
}

type OsHelper

type OsHelper interface {
	Umask(mask int) (oldmask int)
}

type VolumeDriver

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

func NewVolumeDriver

func NewVolumeDriver(logger lager.Logger, os osshim.Os, filepath filepathshim.Filepath, ioutil ioutilshim.Ioutil, time timeshim.Time, mountChecker mountchecker.MountChecker, mountPathRoot string, mounter Mounter, oshelper OsHelper) *VolumeDriver

func (*VolumeDriver) Activate

func (*VolumeDriver) Capabilities

func (*VolumeDriver) Create

func (*VolumeDriver) Drain

func (d *VolumeDriver) Drain(env dockerdriver.Env) error

func (*VolumeDriver) Get

func (*VolumeDriver) List

func (*VolumeDriver) Mount

func (*VolumeDriver) Path

func (*VolumeDriver) Remove

func (*VolumeDriver) Unmount

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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