s3storage

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2025 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Overview

Package s3storage provides AWS S3 storage implementation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type S3Storage

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

S3Storage implements storage interface for AWS S3.

func NewS3Storage

func NewS3Storage(region string, endpoint string, bucket string, path string) (*S3Storage, error)

NewS3Storage creates a new S3Storage.

func (*S3Storage) CreateBucket

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

CreateBucket creates the bucket.

func (*S3Storage) InitClient

func (s *S3Storage) InitClient() error

InitClient initializes the s3 client.

func (*S3Storage) SaveFile

func (s *S3Storage) SaveFile(ctx context.Context, archiveFilePath string, dstFilename string) error

SaveFile saves the file in s3.

Jump to

Keyboard shortcuts

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