storage

package
v0.0.0-...-07c56e1 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider interface {
	Upload(UploadRequest) (UploadResponse, error)
}

type S3Provider

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

func NewS3Provider

func NewS3Provider() *S3Provider

func (S3Provider) Upload

func (s S3Provider) Upload(request UploadRequest) (UploadResponse, error)

type UploadRequest

type UploadRequest struct {
	Bucket string
	Folder string
	Key    string
	Body   []byte
}

type UploadResponse

type UploadResponse struct {
	Path string `json:"path"`
}

Jump to

Keyboard shortcuts

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