Documentation ¶
Index ¶
- Constants
- func Init(root string, config map[string]string) (ConvoyDriver, error)
- func NewEBSService() (*ebsService, error)
- type CreateEBSVolumeRequest
- type CreateSnapshotRequest
- type Device
- type Driver
- func (d *Driver) BackupOps() (BackupOperations, error)
- func (d *Driver) CreateBackup(snapshotID, volumeID, destURL string, opts map[string]string) (string, error)
- func (d *Driver) CreateSnapshot(req Request) error
- func (d *Driver) CreateVolume(req Request) error
- func (d *Driver) DeleteBackup(backupURL string) error
- func (d *Driver) DeleteSnapshot(req Request) error
- func (d *Driver) DeleteVolume(req Request) error
- func (d *Driver) GetBackupInfo(backupURL string) (map[string]string, error)
- func (d *Driver) GetSnapshotInfo(req Request) (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(req Request) (string, error)
- func (d *Driver) MountVolume(req Request) (string, error)
- func (d *Driver) Name() string
- func (d *Driver) SnapshotOps() (SnapshotOperations, error)
- func (d *Driver) UmountVolume(req Request) error
- func (d *Driver) VolumeOps() (VolumeOperations, error)
- type Snapshot
- type Volume
Constants ¶
View Source
const ( DRIVER_NAME = "ebs" DRIVER_CONFIG_FILE = "ebs.cfg" VOLUME_CFG_PREFIX = "volume_" CFG_PREFIX = DRIVER_NAME + "_" CFG_POSTFIX = ".json" EBS_DEFAULT_VOLUME_SIZE = "ebs.defaultvolumesize" EBS_DEFAULT_VOLUME_TYPE = "ebs.defaultvolumetype" EBS_DEFAULT_VOLUME_KEY = "ebs.defaultkmskeyid" DEFAULT_VOLUME_SIZE = "4G" DEFAULT_VOLUME_TYPE = "gp2" MOUNTS_DIR = "mounts" MOUNT_BINARY = "mount" UMOUNT_BINARY = "umount" )
View Source
const ( GB = 1073741824 RETRY_INTERVAL = 5 )
Variables ¶
This section is empty.
Functions ¶
func NewEBSService ¶
func NewEBSService() (*ebsService, error)
Types ¶
type CreateEBSVolumeRequest ¶
type CreateSnapshotRequest ¶
type Device ¶
type Device struct { Root string DefaultVolumeSize int64 DefaultVolumeType string DefaultKmsKeyID string }
func (*Device) ConfigFile ¶
type Driver ¶
type Driver struct { Device // contains filtered or unexported fields }
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) MountPoint ¶
func (*Driver) MountVolume ¶
func (*Driver) SnapshotOps ¶
func (*Driver) UmountVolume ¶
type Volume ¶
type Volume struct { Name string EBSID string Device string MountPoint string Snapshots map[string]Snapshot // contains filtered or unexported fields }
func (*Volume) ConfigFile ¶
func (*Volume) GenerateDefaultMountPoint ¶
func (*Volume) GetMountOpts ¶
Click to show internal directories.
Click to hide internal directories.