Documentation
¶
Index ¶
Constants ¶
const ContainerName = "memorizer-falkordb"
ContainerName is the name used for the FalkorDB container
Variables ¶
This section is empty.
Functions ¶
func GetRuntime ¶
GetRuntime returns the display name for a runtime
func IsDockerAvailable ¶
func IsDockerAvailable() bool
IsDockerAvailable checks if Docker is installed and running
func IsFalkorDBRunning ¶
IsFalkorDBRunning checks if the FalkorDB container is running in any runtime. Checks Docker first, then Podman.
func IsFalkorDBRunningIn ¶
IsFalkorDBRunningIn checks if the FalkorDB container is running in a specific runtime
func IsPodmanAvailable ¶
func IsPodmanAvailable() bool
IsPodmanAvailable checks if Podman is installed and running
func StartFalkorDB ¶
func StartFalkorDB(runtime Runtime, opts StartOptions) error
StartFalkorDB starts the FalkorDB container using the specified runtime. If a stopped container exists, it will be started. Otherwise, a new container will be created with the specified options.
Types ¶
type StartOptions ¶
type StartOptions struct {
Port int // Redis port (default: 6379)
DataDir string // Host directory for persistent data (optional)
Detach bool // Run in background (default: true)
}
StartOptions configures FalkorDB container startup