types

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 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"
)

Container statuses

Variables

View Source
var (
	// ValidVolumeTypes is a list of all valid volume types
	ValidVolumeTypes = []string{VolumeTypeNone, VolumeTypeNamed, VolumeTypeCustom}

	// ValidStatuses is a list of all valid container statuses
	ValidStatuses = []string{StatusRunning, StatusStopped, StatusExpired}

	// StatusAliases maps common aliases to canonical statuses
	StatusAliases = map[string]string{
		"up":      StatusRunning,
		"running": StatusRunning,
		"down":    StatusStopped,
		"stopped": StatusStopped,
		"expired": StatusExpired,
	}
)

Functions

func DBTypeAliases

func DBTypeAliases() map[string]string

DBTypeAliases returns a map of all database type aliases from the adapter registry

func IsValidDBType

func IsValidDBType(dbType string) bool

IsValidDBType checks if a database type is valid

func IsValidStatus

func IsValidStatus(status string) bool

IsValidStatus checks if a status is valid

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 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