uploader

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AliOSSUploader

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

func (*AliOSSUploader) Upload

func (u *AliOSSUploader) Upload(localFilePath, requestedPath string, _ types.OutputType) (string, int64, error)

type AzureUploader

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

func (*AzureUploader) Upload

func (u *AzureUploader) Upload(localFilepath, storageFilepath string, outputType types.OutputType) (string, int64, error)

type GCPUploader

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

func (*GCPUploader) Upload

func (u *GCPUploader) Upload(localFilepath, storageFilepath string, _ types.OutputType) (string, int64, error)

type S3Uploader

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

func (*S3Uploader) Upload

func (u *S3Uploader) Upload(localFilepath, storageFilepath string, outputType types.OutputType) (string, int64, error)

type Uploader

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

func New

func New(conf interface{}) (Uploader, error)

Jump to

Keyboard shortcuts

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