storage

package
v0.1.19 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2022 License: LGPL-2.1 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

type Storage interface {
	Upload(ctx context.Context, data []byte, folder, bucket, fileExtension, name, visibility string) (string, error)
	GetFileLink(ctx context.Context, bucket, file string, expiresIn time.Duration) (string, error)
}

func NewS3

func NewS3(credentials *credentials.Credentials, endpoint, region string) (Storage, error)

Jump to

Keyboard shortcuts

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