Documentation ¶
Index ¶
- Constants
- func Init(root string, config map[string]string) (ConvoyDriver, error)
- type Client
- type Device
- type Driver
- func (d *Driver) BackupOps() (BackupOperations, error)
- func (d *Driver) CreateVolume(req Request) error
- func (d *Driver) DeleteVolume(req Request) error
- func (d *Driver) GetVolumeInfo(name 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(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 TokenAuth
- type Volume
Constants ¶
View Source
const ( DRIVER_NAME = "digitalocean" DRIVER_CONFIG_FILE = "digitalocean.cfg" VOLUME_CFG_PREFIX = "volume_" CFG_PREFIX = DRIVER_NAME + "_" CFG_SUFFIX = ".json" DO_DEFAULT_VOLUME_SIZE = "do.defaultvolumesize" DEFAULT_VOLUME_SIZE = "10G" DO_DEVICE_FOLDER = "/dev/disk/by-id" DO_DEVICE_PREFIX = "scsi-0DO_Volume_" DO_VOLUME_FS = "ext4" MOUNTS_DIR = "mounts" GB = 1073741824 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) AttachVolume ¶
func (*Client) CreateVolume ¶
func (*Client) DeleteVolume ¶
func (*Client) DetachVolume ¶
type Device ¶
func (*Device) ConfigFile ¶
type Driver ¶
type Driver struct { Device // contains filtered or unexported fields }
Driver is a convoy driver for DigitalOcean volumes
func (*Driver) CreateVolume ¶
func (*Driver) DeleteVolume ¶
func (*Driver) GetVolumeInfo ¶
func (*Driver) ListVolume ¶
func (*Driver) MountPoint ¶
func (*Driver) MountVolume ¶
func (*Driver) SnapshotOps ¶
These methods are not implemented currently at DigitalOcean
func (*Driver) UmountVolume ¶
type Volume ¶
type Volume struct { Name string ID string Device string MountPoint string Size int64 // contains filtered or unexported fields }
func (*Volume) ConfigFile ¶
func (*Volume) GenerateDefaultMountPoint ¶
func (*Volume) GetMountOpts ¶
Click to show internal directories.
Click to hide internal directories.