s3storage

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

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
}

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() (err 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