app

package
v0.0.0-...-c416c94 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	// contains filtered or unexported fields
}

App owns process-wide initialisation: filesystem layout, Docker readiness, global containers, and router lifecycle.

func New

func New(configFiles embed.FS, d *docker.Docker, homeDir string, rtr router.Router) *App

func (*App) GetClient

func (a *App) GetClient() *client.Client

func (*App) GetHomeDir

func (a *App) GetHomeDir() string

func (*App) Initialize

func (a *App) Initialize(ctx context.Context) error

Initialize runs the startup sequence: filesystem, cleanup, networks, global services, router. Returns the first error encountered so the UI can surface it.

func (*App) IsDockerAvailable

func (a *App) IsDockerAvailable(ctx context.Context) error

IsDockerAvailable checks if Docker is available and running.

func (*App) SetupFilesystem

func (a *App) SetupFilesystem() error

func (*App) Shutdown

func (a *App) Shutdown(ctx context.Context) error

Jump to

Keyboard shortcuts

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