provider

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddProvider

func AddProvider(providerName string, fn func() (Provider, error))

AddProvider adds the Provider constructor to the list.

Types

type FileOption

type FileOption struct {
	SrcPath    string
	BucketName string
	DstPath    string
}

type Provider

type Provider interface {
	CheckBucket(bucketName string) error
	IsExists(FileOption) (isExist bool, err error)
	UploadFromLocalFile(FileOption) error
}

func Create

func Create(providerName string) (Provider, error)

Create creates the Provider from the list.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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