providers

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2026 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProvideBuildManager

func ProvideBuildManager(p *paths.Paths, cfg *config.Config, instanceManager instances.Manager, volumeManager volumes.Manager, imageManager images.Manager, log *slog.Logger) (builds.Manager, error)

ProvideBuildManager provides the build manager

func ProvideConfig

func ProvideConfig() *config.Config

ProvideConfig provides the application configuration. Panics if configuration is invalid (prevents startup with bad config). Config path can be specified via CONFIG_PATH env var or defaults to platform-specific locations.

func ProvideContext

func ProvideContext(log *slog.Logger) context.Context

ProvideContext provides a context with logger attached

func ProvideDeviceManager

func ProvideDeviceManager(p *paths.Paths) devices.Manager

ProvideDeviceManager provides the device manager

func ProvideImageManager

func ProvideImageManager(p *paths.Paths, cfg *config.Config) (images.Manager, error)

ProvideImageManager provides the image manager

func ProvideIngressManager

func ProvideIngressManager(p *paths.Paths, cfg *config.Config, instanceManager instances.Manager) (ingress.Manager, error)

ProvideIngressManager provides the ingress manager

func ProvideInstanceManager

func ProvideInstanceManager(p *paths.Paths, cfg *config.Config, imageManager images.Manager, systemManager system.Manager, networkManager network.Manager, deviceManager devices.Manager, volumeManager volumes.Manager) (instances.Manager, error)

ProvideInstanceManager provides the instance manager

func ProvideLogger

func ProvideLogger(p *paths.Paths) *slog.Logger

ProvideLogger provides a structured logger with subsystem-specific levels. Wraps with InstanceLogHandler to automatically write logs with "id" attribute to per-instance hypeman.log files.

func ProvideNetworkManager

func ProvideNetworkManager(p *paths.Paths, cfg *config.Config) network.Manager

ProvideNetworkManager provides the network manager

func ProvidePaths

func ProvidePaths(cfg *config.Config) *paths.Paths

ProvidePaths provides the paths abstraction

func ProvideRegistry

func ProvideRegistry(p *paths.Paths, imageManager images.Manager) (*registry.Registry, error)

ProvideRegistry provides the OCI registry for image push

func ProvideResourceManager

func ProvideResourceManager(ctx context.Context, cfg *config.Config, p *paths.Paths, imageManager images.Manager, instanceManager instances.Manager, volumeManager volumes.Manager) (*resources.Manager, error)

ProvideResourceManager provides the resource manager for capacity tracking

func ProvideSystemManager

func ProvideSystemManager(p *paths.Paths) system.Manager

ProvideSystemManager provides the system manager

func ProvideVMMetricsManager added in v0.0.6

func ProvideVMMetricsManager(instanceManager instances.Manager) (*vm_metrics.Manager, error)

ProvideVMMetricsManager provides the VM metrics manager for utilization tracking

func ProvideVolumeManager

func ProvideVolumeManager(p *paths.Paths, cfg *config.Config) (volumes.Manager, error)

ProvideVolumeManager provides the volume manager

Types

This section is empty.

Jump to

Keyboard shortcuts

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