s3

package
v0.0.0-...-e9a242d Latest Latest
Warning

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

Go to latest
Published: Sep 28, 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 Bucket

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

func New

func New(l *slog.Logger, c *Config) (*Bucket, error)

func (*Bucket) Name

func (bucket *Bucket) Name() string

func (*Bucket) Type

func (bucket *Bucket) Type() string

func (*Bucket) Upload

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

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)

Jump to

Keyboard shortcuts

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