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) CreateVolume(id string, opts map[string]string) error
- func (d *Driver) DeleteVolume(id string, opts 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) 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 GlusterFSVolume
- type Snapshot
- type Volume
Constants ¶
View Source
const ( DRIVER_NAME = "glusterfs" DRIVER_CONFIG_FILE = "glusterfs.cfg" VOLUME_CFG_PREFIX = "volume_" DRIVER_CFG_PREFIX = DRIVER_NAME + "_" CFG_POSTFIX = ".json" SNAPSHOT_PATH = "snapshots" MOUNTS_DIR = "mounts" GLUSTERFS_SERVERS = "glusterfs.servers" GLUSTERFS_DEFAULT_VOLUME_POOL = "glusterfs.defaultvolumepool" GLUSTERFS_DEFAULT_VOLUME_SIZE = "glusterfs.defaultvolumesize" DEFAULT_VOLUME_SIZE = "100G" )
Variables ¶
This section is empty.
Functions ¶
func Init ¶
func Init(root string, config map[string]string) (convoydriver.ConvoyDriver, error)
Types ¶
type Device ¶
type Device struct { Root string Servers []string DefaultVolumePool string DefaultVolumeSize int64 }
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) CreateVolume ¶
func (*Driver) DeleteVolume ¶
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 GlusterFSVolume ¶
type GlusterFSVolume struct { UUID string // volume name in fact MountPoint string Servers []string // contains filtered or unexported fields }
func (*GlusterFSVolume) GenerateDefaultMountPoint ¶
func (gv *GlusterFSVolume) GenerateDefaultMountPoint() string
func (*GlusterFSVolume) GetDevice ¶
func (gv *GlusterFSVolume) GetDevice() (string, error)
func (*GlusterFSVolume) GetMountOpts ¶
func (gv *GlusterFSVolume) GetMountOpts() []string
Click to show internal directories.
Click to hide internal directories.