storage

package
v2.10.1 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2022 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 S3Config

type S3Config struct {
	AccessKeyID     string
	Bucket          string
	Region          string
	SecretAccessKey string
}

type S3Upload

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

func NewS3Upload

func NewS3Upload(config S3Config) (*S3Upload, error)

func (S3Upload) Upload

func (upload S3Upload) Upload(fpath string) (int64, error)

type Uploader

type Uploader interface {
	Upload(string) (int64, error)
}

Jump to

Keyboard shortcuts

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