container

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

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 service dependencies

func NewContainer

func NewContainer(cfg *config.Config) (*Container, error)

NewContainer creates a new dependency injection container

func (*Container) GetAgeService

func (c *Container) GetAgeService() interfaces.AgeService

GetAgeService returns the age service instance

func (*Container) GetBucketService

func (c *Container) GetBucketService() interfaces.BucketService

GetBucketService returns the bucket service instance

func (*Container) GetConfig

func (c *Container) GetConfig() *config.Config

GetConfig returns the container configuration

func (*Container) GetCostCalculator

func (c *Container) GetCostCalculator() interfaces.CostCalculator

GetCostCalculator returns the cost calculator instance

func (*Container) GetDryRunService

func (c *Container) GetDryRunService() interfaces.DryRunService

GetDryRunService returns the dry-run service instance

func (*Container) GetExportService

func (c *Container) GetExportService() interfaces.ExportService

GetExportService returns the export service instance

func (*Container) GetFilterEngine

func (c *Container) GetFilterEngine() interfaces.FilterEngine

GetFilterEngine returns the filter engine instance

func (*Container) GetLogger

func (c *Container) GetLogger() *logging.Logger

GetLogger returns the logger instance

func (*Container) GetOutputFormatter

func (c *Container) GetOutputFormatter() interfaces.OutputFormatter

GetOutputFormatter returns the output formatter instance

func (*Container) GetPricingClient

func (c *Container) GetPricingClient() *pricing.Client

GetPricingClient returns the Pricing client

func (*Container) GetS3Client

func (c *Container) GetS3Client() *s3.Client

GetS3Client returns the S3 client

func (*Container) GetS3ClientWrapper

func (c *Container) GetS3ClientWrapper() *aws.S3Client

GetS3ClientWrapper returns the S3 client wrapper

func (*Container) GetSizeService

func (c *Container) GetSizeService() interfaces.SizeService

GetSizeService returns the size service instance

func (*Container) GetUploadService

func (c *Container) GetUploadService() interfaces.UploadService

GetUploadService returns the upload service instance

func (*Container) SetAgeService

func (c *Container) SetAgeService(service interfaces.AgeService)

SetAgeService sets the age service (for dependency injection)

func (*Container) SetBucketService

func (c *Container) SetBucketService(service interfaces.BucketService)

SetBucketService sets the bucket service (for dependency injection)

func (*Container) SetCostCalculator

func (c *Container) SetCostCalculator(calculator interfaces.CostCalculator)

SetCostCalculator sets the cost calculator (for dependency injection)

func (*Container) SetDryRunService

func (c *Container) SetDryRunService(service interfaces.DryRunService)

SetDryRunService sets the dry-run service (for dependency injection)

func (*Container) SetExportService

func (c *Container) SetExportService(service interfaces.ExportService)

SetExportService sets the export service (for dependency injection)

func (*Container) SetFilterEngine

func (c *Container) SetFilterEngine(engine interfaces.FilterEngine)

SetFilterEngine sets the filter engine (for dependency injection)

func (*Container) SetOutputFormatter

func (c *Container) SetOutputFormatter(formatter interfaces.OutputFormatter)

SetOutputFormatter sets the output formatter (for dependency injection)

func (*Container) SetSizeService

func (c *Container) SetSizeService(service interfaces.SizeService)

SetSizeService sets the size service (for dependency injection)

func (*Container) SetUploadService

func (c *Container) SetUploadService(service interfaces.UploadService)

SetUploadService sets the upload service (for dependency injection)

Jump to

Keyboard shortcuts

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