remote

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustRegisterFileService

func MustRegisterFileService(protocol string, service FileService)

func RegisterFileService

func RegisterFileService(protocol string, service FileService) error

Types

type FileService

type FileService interface {
	DeleteFile(ctx context.Context, path string, auth, params map[string]string) error
	UploadFile(ctx context.Context, reader io.Reader, path string, auth, params map[string]string) (FileTask, error)
	DownloadFile(ctx context.Context, writer io.Writer, path string, auth, params map[string]string) (FileTask, error)
}

func GetFileService

func GetFileService(protocol string) (FileService, error)

type FileTask

type FileTask interface {
	Progress() int
	Wait() error
}

Jump to

Keyboard shortcuts

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