s3

package
v0.0.0-...-db8c6ed Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2021 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

View Source
const ServiceName = "s3"

Variables

This section is empty.

Functions

func NewService

func NewService(config mediastore.ServiceConfig) (mediastore.Service, error)

Types

type Config

type Config struct {
	Region          string `env:"REGION,required"`
	BucketName      string `env:"BUCKET_NAME,required"`
	AccessKeyID     string `env:"ACCESS_KEY_ID"`
	SecretAccessKey string `env:"SECRET_ACCESS_KEY"`
}

func ConfigSkeleton

func ConfigSkeleton() Config

type Service

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

func (*Service) PutObject

func (objStoreCl *Service) PutObject(
	targetKey string, contentSource io.Reader,
) (finalURL string, err error)

Jump to

Keyboard shortcuts

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