docker

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2025 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 ContainerExists

func ContainerExists() bool

ContainerExists checks if the FalkorDB container exists (running or stopped)

func IsAvailable

func IsAvailable() bool

IsAvailable checks if Docker is installed and running

func IsFalkorDBRunning

func IsFalkorDBRunning(port int) bool

IsFalkorDBRunning checks if the FalkorDB container is running

func RemoveFalkorDB

func RemoveFalkorDB() error

RemoveFalkorDB removes the FalkorDB container

func StartFalkorDB

func StartFalkorDB(opts StartOptions) error

StartFalkorDB starts the FalkorDB Docker container. If a stopped container exists, it will be started. Otherwise, a new container will be created with the specified options.

func StopFalkorDB

func StopFalkorDB() error

StopFalkorDB stops the FalkorDB container

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

Jump to

Keyboard shortcuts

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