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)
Click to show internal directories.
Click to hide internal directories.