Documentation ¶
Index ¶
- Constants
- Variables
- func Init(root string, args []string) (volume.Driver, error)
- type NFSDriver
- func (d *NFSDriver) Cleanup() error
- func (d *NFSDriver) Create(volumeName string) (volume.Volume, error)
- func (d *NFSDriver) DriverType() volume.DriverType
- func (d *NFSDriver) Exists(volumeName string) bool
- func (d *NFSDriver) Get(volumeName string) (volume.Volume, error)
- func (d *NFSDriver) GetTenant(volumeName string) (volume.Volume, error)
- func (d *NFSDriver) List() (result []string)
- func (d *NFSDriver) Release(volumeName string) error
- func (d *NFSDriver) Remove(volumeName string) error
- func (d *NFSDriver) Resize(volumeName string, size uint64) error
- func (d *NFSDriver) Root() string
- func (d *NFSDriver) Status() (volume.Status, error)
- type NFSVolume
- func (v *NFSVolume) Driver() volume.Driver
- func (v *NFSVolume) Export(label, parent string, writer io.Writer, excludes []string) error
- func (v *NFSVolume) GetSnapshotWithTag(tagName string) (*volume.SnapshotInfo, error)
- func (v *NFSVolume) Import(label string, reader io.Reader) error
- func (v *NFSVolume) Name() string
- func (v *NFSVolume) Path() string
- func (v *NFSVolume) ReadMetadata(label, name string) (io.ReadCloser, error)
- func (v *NFSVolume) RemoveSnapshot(label string) error
- func (v *NFSVolume) Rollback(label string) (err error)
- func (v *NFSVolume) Snapshot(label, message string, tags []string) (err error)
- func (v *NFSVolume) SnapshotInfo(label string) (*volume.SnapshotInfo, error)
- func (v *NFSVolume) Snapshots() ([]string, error)
- func (v *NFSVolume) TagSnapshot(label string, tagName string) error
- func (v *NFSVolume) Tenant() string
- func (v *NFSVolume) UntagSnapshot(tagName string) (string, error)
- func (v *NFSVolume) WriteMetadata(label, name string) (io.WriteCloser, error)
Constants ¶
View Source
const NetworkDisabled = "network_disabled"
Variables ¶
View Source
var (
ErrNotSupported = errors.New("not supported by nfs driver")
)
Functions ¶
Types ¶
type NFSDriver ¶
type NFSDriver struct {
// contains filtered or unexported fields
}
TODO: name this better, since this is more of a passthrough
func (*NFSDriver) DriverType ¶
func (d *NFSDriver) DriverType() volume.DriverType
DriverType implements volume.Driver.DriverType
type NFSVolume ¶
type NFSVolume struct {
// contains filtered or unexported fields
}
func (*NFSVolume) GetSnapshotWithTag ¶
func (v *NFSVolume) GetSnapshotWithTag(tagName string) (*volume.SnapshotInfo, error)
GetSnapshotWithTag implements volume.Volume.GetSnapshotWithTag
func (*NFSVolume) ReadMetadata ¶
func (v *NFSVolume) ReadMetadata(label, name string) (io.ReadCloser, error)
ReadMetadata implements volume.Volume.ReadMetadata
func (*NFSVolume) RemoveSnapshot ¶
RemoveSnapshot implements volume.Volume.RemoveSnapshot
func (*NFSVolume) SnapshotInfo ¶
func (v *NFSVolume) SnapshotInfo(label string) (*volume.SnapshotInfo, error)
SnapshotInfo implements volume.Volume.SnapshotInfo
func (*NFSVolume) TagSnapshot ¶
TagSnapshot implements volume.Volume.TagSnapshot
func (*NFSVolume) UntagSnapshot ¶
RemoveSnapshotTag implements volume.Volume.UntagSnapshot
func (*NFSVolume) WriteMetadata ¶
func (v *NFSVolume) WriteMetadata(label, name string) (io.WriteCloser, error)
WriteMetadata implements volume.Volume.WriteMetadata
Click to show internal directories.
Click to hide internal directories.