container

package
v0.4.5-alpha Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2026 License: Apache-2.0 Imports: 22 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) OutputFormatterFactory

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

OutputFormatterFactory returns the output formatter factory port.

func (*Container) PlanProfileUseCase

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

PlanProfileUseCase returns the plan profile use case.

func (*Container) PluginService

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

PluginService returns the plugin service.

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.

func (*Container) ValidateProfileUseCase

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

ValidateProfileUseCase returns the validate profile use case.

type Options

type Options struct {
	Logger           *slog.Logger
	SecurityLevel    string
	SystemConfigPath string
	TrustPlugins     bool
}

Options configure the container.

Jump to

Keyboard shortcuts

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