Documentation
¶
Index ¶
- Constants
- func Init(root string, config map[string]string) (convoydriver.ConvoyDriver, error)
- type Device
- type Driver
- func (d *Driver) BackupOps() (convoydriver.BackupOperations, error)
- func (d *Driver) CreateBackup(snapshotID, volumeID, destURL string, opts map[string]string) (string, error)
- func (d *Driver) CreateSnapshot(id, volumeID string) error
- func (d *Driver) CreateVolume(id string, opts map[string]string) error
- func (d *Driver) DeleteBackup(backupURL string) error
- func (d *Driver) DeleteSnapshot(id, volumeID string) error
- func (d *Driver) DeleteVolume(id string, opts map[string]string) error
- func (d *Driver) GetBackupInfo(backupURL string) (map[string]string, error)
- func (d *Driver) GetSnapshotInfo(id, volumeID string) (map[string]string, error)
- func (d *Driver) GetVolumeInfo(id string) (map[string]string, error)
- func (d *Driver) Info() (map[string]string, error)
- func (d *Driver) ListBackup(destURL string, opts map[string]string) (map[string]map[string]string, error)
- func (d *Driver) ListSnapshot(opts map[string]string) (map[string]map[string]string, error)
- func (d *Driver) ListVolume(opts map[string]string) (map[string]map[string]string, error)
- func (d *Driver) MountPoint(id string) (string, error)
- func (d *Driver) MountVolume(id string, opts map[string]string) (string, error)
- func (d *Driver) Name() string
- func (d *Driver) SnapshotOps() (convoydriver.SnapshotOperations, error)
- func (d *Driver) UmountVolume(id string) error
- func (d *Driver) VolumeOps() (convoydriver.VolumeOperations, error)
- type Snapshot
- type VfsObjectStoreDriver
- func (v *VfsObjectStoreDriver) Download(src, dst string) error
- func (v *VfsObjectStoreDriver) FileExists(filePath string) bool
- func (v *VfsObjectStoreDriver) FileSize(filePath string) int64
- func (v *VfsObjectStoreDriver) GetURL() string
- func (v *VfsObjectStoreDriver) Kind() string
- func (v *VfsObjectStoreDriver) List(path string) ([]string, error)
- func (v *VfsObjectStoreDriver) Read(src string) (io.ReadCloser, error)
- func (v *VfsObjectStoreDriver) Remove(names ...string) error
- func (v *VfsObjectStoreDriver) Upload(src, dst string) error
- func (v *VfsObjectStoreDriver) Write(dst string, rs io.ReadSeeker) error
- type Volume
Constants ¶
View Source
const ( KIND = "vfs" VFS_PATH = "vfs.path" MAX_CLEANUP_LEVEL = 10 )
View Source
const ( DRIVER_NAME = "vfs" DRIVER_CONFIG_FILE = "vfs.cfg" VOLUME_CFG_PREFIX = "volume_" VFS_CFG_PREFIX = DRIVER_NAME + "_" CFG_POSTFIX = ".json" SNAPSHOT_PATH = "snapshots" )
Variables ¶
This section is empty.
Functions ¶
func Init ¶
func Init(root string, config map[string]string) (convoydriver.ConvoyDriver, error)
Types ¶
type Device ¶
func (*Device) ConfigFile ¶
type Driver ¶
type Driver struct { Device // contains filtered or unexported fields }
func (*Driver) BackupOps ¶
func (d *Driver) BackupOps() (convoydriver.BackupOperations, error)
func (*Driver) CreateBackup ¶
func (*Driver) CreateSnapshot ¶
func (*Driver) CreateVolume ¶
func (*Driver) DeleteBackup ¶
func (*Driver) DeleteSnapshot ¶
func (*Driver) DeleteVolume ¶
func (*Driver) GetBackupInfo ¶
func (*Driver) GetSnapshotInfo ¶
func (*Driver) ListBackup ¶
func (*Driver) ListSnapshot ¶
func (*Driver) ListVolume ¶
func (*Driver) MountVolume ¶
func (*Driver) SnapshotOps ¶
func (d *Driver) SnapshotOps() (convoydriver.SnapshotOperations, error)
func (*Driver) UmountVolume ¶
func (*Driver) VolumeOps ¶
func (d *Driver) VolumeOps() (convoydriver.VolumeOperations, error)
type VfsObjectStoreDriver ¶
type VfsObjectStoreDriver struct {
// contains filtered or unexported fields
}
func (*VfsObjectStoreDriver) Download ¶
func (v *VfsObjectStoreDriver) Download(src, dst string) error
func (*VfsObjectStoreDriver) FileExists ¶
func (v *VfsObjectStoreDriver) FileExists(filePath string) bool
func (*VfsObjectStoreDriver) FileSize ¶
func (v *VfsObjectStoreDriver) FileSize(filePath string) int64
func (*VfsObjectStoreDriver) GetURL ¶
func (v *VfsObjectStoreDriver) GetURL() string
func (*VfsObjectStoreDriver) Kind ¶
func (v *VfsObjectStoreDriver) Kind() string
func (*VfsObjectStoreDriver) List ¶
func (v *VfsObjectStoreDriver) List(path string) ([]string, error)
func (*VfsObjectStoreDriver) Read ¶
func (v *VfsObjectStoreDriver) Read(src string) (io.ReadCloser, error)
func (*VfsObjectStoreDriver) Remove ¶
func (v *VfsObjectStoreDriver) Remove(names ...string) error
func (*VfsObjectStoreDriver) Upload ¶
func (v *VfsObjectStoreDriver) Upload(src, dst string) error
func (*VfsObjectStoreDriver) Write ¶
func (v *VfsObjectStoreDriver) Write(dst string, rs io.ReadSeeker) error
Click to show internal directories.
Click to hide internal directories.