dobs

package
v0.10.0-rc1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 7, 2017 License: Apache-2.0, Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Name is the name of the driver
	Name = "dobs"

	// InstanceIDFieldRegion is the key used to retrive the region from the
	// instance id map
	InstanceIDFieldRegion = "region"

	// InstanceIDFieldName is the key used to retrive the name from the instance
	// id map
	InstanceIDFieldName = "name"

	// VolumePrefix is the value that every DO volume appears with DigitalOcean
	// volumes are are found using disk/by-id, for example:
	//
	//     /dev/disk/by-id/scsi-0DO_Volume_volume-nyc1-01
	//
	// Please see https://goo.gl/MwReS6 for more information.
	VolumePrefix = "scsi-0DO_Volume_"

	// ConfigToken is the key for the token in the config file
	ConfigToken = Name + ".token"

	// ConfigRegion is the key for the region in the config file
	ConfigRegion = Name + ".region"

	// ConfigStatusMaxAttempts is the key for the maximum number of times
	// a volume status will be queried when waiting for an action to finish
	ConfigStatusMaxAttempts = Name + ".statusMaxAttempts"

	// ConfigStatusInitDelay is the key for the initial time duration
	// for exponential backoff
	ConfigStatusInitDelay = Name + ".statusInitialDelay"

	// ConfigStatusTimeout is the key for the time duration for a timeout
	// on how long to wait for a desired volume status to appears
	ConfigStatusTimeout = Name + ".statusTimeout"

	// ConfigConvertUnderscores is the key for a boolean flag on whether
	// incoming requests that have names with underscores should be
	// converted to dashes to satisfy DO naming requirements
	ConfigConvertUnderscores = Name + ".convertUnderscores"
)

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL