types

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: MIT Imports: 3 Imported by: 0

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

func NormalizeDBType(dbType string) (string, error)

NormalizeDBType normalizes a database type string to canonical form.

func NormalizeStatus

func NormalizeStatus(status string) (string, error)

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.

Jump to

Keyboard shortcuts

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