s3adapter

package
v0.0.0-...-6e5808f Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	AccessKeyId         string
	SecretAccessKey     string
	Bucket              string
	Endpoint            string
	Region              string
	RootPath            string
	Compression         compression.Compression
	DeleteOtherVersions bool
}

func (*Config) Retrieve

func (config *Config) Retrieve(context.Context) (aws.Credentials, error)

type Connection

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

func New

func New(config *Config) (*Connection, error)

func (*Connection) Download

func (conn *Connection) Download(oid string, localPath string, callback func(transferred int64)) error

func (*Connection) Upload

func (conn *Connection) Upload(oid string, localPath string, callback func(transferred int64)) error

Jump to

Keyboard shortcuts

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