Documentation
¶
Index ¶
Constants ¶
View Source
const ( DBTypePostgres = "postgres" DBTypeMySQL = "mysql" DBTypeRedis = "redis" )
Database types
View Source
const ( VolumeTypeNone = "none" VolumeTypeNamed = "named" VolumeTypeBind = "bind" VolumeTypeCustom = "custom path" )
Volume types
View Source
const ( StatusRunning = "running" StatusStopped = "stopped" StatusExpired = "expired" StatusRemoved = "removed" )
Container statuses
Variables ¶
View Source
var ( // ValidStatuses is a list of all valid container statuses. ValidStatuses = []string{StatusRunning, StatusStopped, StatusExpired, StatusRemoved} )
Functions ¶
func NormalizeDBType ¶
NormalizeDBType normalizes a database type string to canonical form.
func NormalizeStatus ¶
NormalizeStatus normalizes a status string (or alias) to canonical form.
func ValidDBTypes ¶
func ValidDBTypes() []string
ValidDBTypes returns a list of all valid database types from the adapter registry.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.