usages3

package
v1.34.6 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2025 License: BSD-3-Clause Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name = "usage-s3"
)

Variables

This section is empty.

Functions

func New

func New() *module

Types

type S3Storage

type S3Storage struct {
	*common.BaseStorage
	// contains filtered or unexported fields
}

S3Storage implements the StorageBackend interface for S3

func NewS3Storage

func NewS3Storage(ctx context.Context, logger logrus.FieldLogger, metrics *common.Metrics) (*S3Storage, error)

NewS3Storage creates a new S3 storage backend

func (*S3Storage) Close

func (s *S3Storage) Close() error

Close cleans up resources

func (*S3Storage) UpdateConfig

func (s *S3Storage) UpdateConfig(config common.StorageConfig) (bool, error)

UpdateConfig updates the backend configuration from the provided config

func (*S3Storage) UploadUsageData

func (s *S3Storage) UploadUsageData(ctx context.Context, usage *types.Report) error

UploadUsageData uploads the usage data to the storage backend

func (*S3Storage) VerifyPermissions

func (s *S3Storage) VerifyPermissions(ctx context.Context) error

VerifyPermissions checks if the backend can access the storage location

Jump to

Keyboard shortcuts

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