Versions in this module Expand all Collapse all v0 v0.5.2 Dec 8, 2018 v0.5.1 Sep 27, 2018 Changes in this version + const CFG_PREFIX + const CFG_SUFFIX + const DEFAULT_VOLUME_SIZE + const DO_DEFAULT_VOLUME_SIZE + const DO_DEVICE_FOLDER + const DO_DEVICE_PREFIX + const DO_VOLUME_FS + const DRIVER_CONFIG_FILE + const DRIVER_NAME + const GB + const MOUNTS_DIR + const VOLUME_CFG_PREFIX + func Init(root string, config map[string]string) (ConvoyDriver, error) + type Client struct + func NewClient() (*Client, error) + func (c *Client) AttachVolume(id string) error + func (c *Client) CreateVolume(name string, size int64) (string, error) + func (c *Client) DeleteVolume(name string) error + func (c *Client) DetachVolume(id string) error + func (c *Client) GetVolume(id string) (*godo.Volume, error) + type Device struct + DefaultVolumeSize int64 + Root string + func (d *Device) ConfigFile() (string, error) + type Driver struct + 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 struct + AuthToken string + func (t *TokenAuth) Token() (*oauth2.Token, error) + type Volume struct + Device string + ID string + MountPoint string + Name string + Size int64 + func (v *Volume) ConfigFile() (string, error) + func (v *Volume) GenerateDefaultMountPoint() string + func (v *Volume) GetDevice() (string, error) + func (v *Volume) GetMountOpts() []string