container

package
v0.2.0-alpha Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package container provides dependency injection for the application.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

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

Container holds all application dependencies.

func New

func New(opts Options) (*Container, error)

New creates a new dependency injection container.

func (*Container) CheckProfileUseCase

func (c *Container) CheckProfileUseCase() *services.CheckProfileUseCase

CheckProfileUseCase returns the check profile use case.

func (*Container) Logger

func (c *Container) Logger() *slog.Logger

Logger returns the configured logger.

func (*Container) ProfileLoader

func (c *Container) ProfileLoader() ports.ProfileLoader

ProfileLoader returns the profile loader port.

func (*Container) ProfileValidator

func (c *Container) ProfileValidator() ports.ProfileValidator

ProfileValidator returns the profile validator port.

func (*Container) SystemConfig

func (c *Container) SystemConfig() *system.Config

SystemConfig returns the system configuration.

type Options

type Options struct {
	TrustPlugins     bool
	SecurityLevel    string // Security level: strict, standard, permissive (overrides config file)
	SystemConfigPath string
	Logger           *slog.Logger
}

Options configure the container.

Jump to

Keyboard shortcuts

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