driver

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddDriver

func AddDriver(name string, driver Driver)

Types

type Driver

type Driver interface {
	Upload(context.Context, *url.URL, *url.URL) (*UploadResult, error)
}

func GetDriver

func GetDriver(name string) (Driver, error)

type FtpDriver

type FtpDriver struct {
}

func (*FtpDriver) Upload

func (d *FtpDriver) Upload(ctx context.Context, src *url.URL, dst *url.URL) (*UploadResult, error)

type HttpDriver

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

func (*HttpDriver) Upload

func (d *HttpDriver) Upload(ctx context.Context, src *url.URL, dst *url.URL) (*UploadResult, error)

type LocalDriver

type LocalDriver struct {
}

func (*LocalDriver) Upload

func (d *LocalDriver) Upload(ctx context.Context, src *url.URL, dst *url.URL) (*UploadResult, error)

type MinioDriver

type MinioDriver struct {
}

func (*MinioDriver) Upload

func (d *MinioDriver) Upload(ctx context.Context, src *url.URL, dst *url.URL) (*UploadResult, error)

type UploadResult

type UploadResult struct{}

Jump to

Keyboard shortcuts

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