docker

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
}

func (*Manager) IsDockerAvailable

func (dm *Manager) IsDockerAvailable() (installed bool, running bool)

IsDockerAvailable checks whether Docker is installed and running. Returns (installed, running).

func (*Manager) StartWithSchema

func (dm *Manager) StartWithSchema(ctx context.Context, stmts *models.SQLStatements, version, name string) (*clickhouse.Client, func(), error)

StartWithSchema spins up a ClickHouse container, loads the given statements, and returns a connected client. The caller must call the returned cleanup function when done.

func (*Manager) VerifyWithDocker

func (dm *Manager) VerifyWithDocker(ctx context.Context, stmts *models.SQLStatements, version string) error

VerifyWithDocker spins up a temporary ClickHouse container and verifies the SQL statements.

Jump to

Keyboard shortcuts

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