container

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const ContainerName = "memorizer-falkordb"

ContainerName is the name used for the FalkorDB container

Variables

This section is empty.

Functions

func GetRuntime

func GetRuntime(r Runtime) string

GetRuntime returns the display name for a runtime

func IsDockerAvailable

func IsDockerAvailable() bool

IsDockerAvailable checks if Docker is installed and running

func IsFalkorDBRunning

func IsFalkorDBRunning(port int) bool

IsFalkorDBRunning checks if the FalkorDB container is running in any runtime. Checks Docker first, then Podman.

func IsFalkorDBRunningIn

func IsFalkorDBRunningIn(runtime Runtime, port int) bool

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 Runtime

type Runtime string

Runtime represents a container runtime

const (
	// RuntimeDocker represents the Docker container runtime
	RuntimeDocker Runtime = "docker"
	// RuntimePodman represents the Podman container runtime
	RuntimePodman Runtime = "podman"
	// RuntimeNone represents no available container runtime
	RuntimeNone Runtime = ""
)

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

Jump to

Keyboard shortcuts

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