s3

package
v0.0.0-...-ee8f338 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const TYPE string = "s3"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	TimeoutInMillis int64  `yaml:"timeout_milliseconds"`
	Bucket          string `yaml:"bucket"`
	Region          string `yaml:"region"`
	Endpoint        string `yaml:"endpoint"`
	AccessKey       string `yaml:"access_key"`
	SecretKey       string `yaml:"secret_key"`
	Prefix          string `yaml:"prefix"`
	ForcePathStyle  bool   `yaml:"force_path_style"`
}

func ParseConfig

func ParseConfig(confData []byte) (*Config, error)

type S3Bucket

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

func New

func New(l *zap.SugaredLogger, c *Config) (*S3Bucket, error)

func (*S3Bucket) Name

func (bucket *S3Bucket) Name() string

func (*S3Bucket) Type

func (bucket *S3Bucket) Type() string

func (*S3Bucket) Upload

func (bucket *S3Bucket) Upload(workU *domain.WorkUnit) (*domain.UploadResult, error)

Jump to

Keyboard shortcuts

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