volumedriver

package module
v0.92.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 16 Imported by: 10

README

a volman driver for NFS

This template volume driver provides common function used in the NFS driver and SMB driver.

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
}

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
internal
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