Help us shape the future of Go! Take the 2026 Go Developer Survey

storage

package
v0.1.21 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2022 License: LGPL-2.1 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	S3NotEnabledErr = errors.New("storage is not enabled. Set S3 parameters to fetch files")
)

Functions

This section is empty.

Types

type NoStorage added in v0.1.20

type NoStorage struct{}

func (*NoStorage) Upload added in v0.1.20

func (ns *NoStorage) Upload(ctx context.Context, data []byte, folder, fileExtension, name string) (string, error)

type Storage

type Storage interface {
	Upload(ctx context.Context, data []byte, folder, fileExtension, name string) (string, error)
}

func NewS3

func NewS3(logger *zap.Logger, environment *environment.Environment) (Storage, error)

Jump to

Keyboard shortcuts

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