storageprovider

package
v0.0.0-...-521bf69 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrAlreadyExists = errors.New("object already exists")
View Source
var ErrNotFound = errors.New("object not found")

Functions

This section is empty.

Types

type S3Provider

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

func InitS3StorageProvider

func InitS3StorageProvider() *S3Provider

func (*S3Provider) DownloadSnippet

func (sp *S3Provider) DownloadSnippet(id string) (data []byte, err error)

func (*S3Provider) UploadSnippet

func (sp *S3Provider) UploadSnippet(data io.Reader, id string) error

Jump to

Keyboard shortcuts

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