nfs

package
v0.0.0-...-9eef935 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 10 Imported by: 2

Documentation

Index

Constants

View Source
const NetworkDisabled = "network_disabled"

Variables

View Source
var (
	ErrNotSupported = errors.New("not supported by nfs driver")
)

Functions

func Init

func Init(root string, args []string) (volume.Driver, error)

Types

type NFSDriver

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

TODO: name this better, since this is more of a passthrough

func (*NFSDriver) Cleanup

func (d *NFSDriver) Cleanup() error

Cleanup implements volume.Driver.Cleanup

func (*NFSDriver) Create

func (d *NFSDriver) Create(volumeName string) (volume.Volume, error)

Create implements volume.Driver.Create

func (*NFSDriver) DriverType

func (d *NFSDriver) DriverType() volume.DriverType

DriverType implements volume.Driver.DriverType

func (*NFSDriver) Exists

func (d *NFSDriver) Exists(volumeName string) bool

Exists implements volume.Driver.Exists

func (*NFSDriver) Get

func (d *NFSDriver) Get(volumeName string) (volume.Volume, error)

Get implements volume.Driver.Get

func (*NFSDriver) GetTenant

func (d *NFSDriver) GetTenant(volumeName string) (volume.Volume, error)

GetTenant implements volume.Driver.GetTenant

func (*NFSDriver) List

func (d *NFSDriver) List() (result []string)

List implements volume.Driver.List

func (*NFSDriver) Release

func (d *NFSDriver) Release(volumeName string) error

Release implements volume.Driver.Release

func (*NFSDriver) Remove

func (d *NFSDriver) Remove(volumeName string) error

Remove implements volume.Driver.Remove

func (*NFSDriver) Resize

func (d *NFSDriver) Resize(volumeName string, size uint64) error

Resize implements volume.Driver.Resize

func (*NFSDriver) Root

func (d *NFSDriver) Root() string

Root implements volume.Driver.Root

func (*NFSDriver) Status

func (d *NFSDriver) Status() (volume.Status, error)

type NFSVolume

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

func (*NFSVolume) Driver

func (v *NFSVolume) Driver() volume.Driver

Driver implements volume.Volume.Driver

func (*NFSVolume) Export

func (v *NFSVolume) Export(label, parent string, writer io.Writer, excludes []string) error

Export implements volume.Volume.Export

func (*NFSVolume) GetSnapshotWithTag

func (v *NFSVolume) GetSnapshotWithTag(tagName string) (*volume.SnapshotInfo, error)

GetSnapshotWithTag implements volume.Volume.GetSnapshotWithTag

func (*NFSVolume) Import

func (v *NFSVolume) Import(label string, reader io.Reader) error

Import implements volume.Volume.Import

func (*NFSVolume) Name

func (v *NFSVolume) Name() string

Name implements volume.Volume.Name

func (*NFSVolume) Path

func (v *NFSVolume) Path() string

Path implements volume.Volume.Path

func (*NFSVolume) ReadMetadata

func (v *NFSVolume) ReadMetadata(label, name string) (io.ReadCloser, error)

ReadMetadata implements volume.Volume.ReadMetadata

func (*NFSVolume) RemoveSnapshot

func (v *NFSVolume) RemoveSnapshot(label string) error

RemoveSnapshot implements volume.Volume.RemoveSnapshot

func (*NFSVolume) Rollback

func (v *NFSVolume) Rollback(label string) (err error)

Rollback implements volume.Volume.Rollback

func (*NFSVolume) Snapshot

func (v *NFSVolume) Snapshot(label, message string, tags []string) (err error)

Snapshot implements volume.Volume.Snapshot

func (*NFSVolume) SnapshotInfo

func (v *NFSVolume) SnapshotInfo(label string) (*volume.SnapshotInfo, error)

SnapshotInfo implements volume.Volume.SnapshotInfo

func (*NFSVolume) Snapshots

func (v *NFSVolume) Snapshots() ([]string, error)

Snapshots implements volume.Volume.Snapshots

func (*NFSVolume) TagSnapshot

func (v *NFSVolume) TagSnapshot(label string, tagName string) error

TagSnapshot implements volume.Volume.TagSnapshot

func (*NFSVolume) Tenant

func (v *NFSVolume) Tenant() string

Tenant implements volume.Volume.Tenant

func (*NFSVolume) UntagSnapshot

func (v *NFSVolume) UntagSnapshot(tagName string) (string, error)

RemoveSnapshotTag implements volume.Volume.UntagSnapshot

func (*NFSVolume) WriteMetadata

func (v *NFSVolume) WriteMetadata(label, name string) (io.WriteCloser, error)

WriteMetadata implements volume.Volume.WriteMetadata

Jump to

Keyboard shortcuts

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