fs

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const RandomFile = ""

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct {
	Root string
}

func Configure

func Configure(root string) (Provider, error)

func (Provider) Download

func (f Provider) Download(relpath string) (provider.Downloader, error)

func (Provider) Expunge

func (f Provider) Expunge(relpath string) error

func (Provider) Upload

func (f Provider) Upload(relpath string) (provider.Uploader, error)

type Uploader

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

func (*Uploader) Cancel

func (out *Uploader) Cancel() error

func (*Uploader) Close

func (out *Uploader) Close() error

func (*Uploader) Path

func (out *Uploader) Path() string

func (*Uploader) Write

func (out *Uploader) Write(b []byte) (int, error)

func (*Uploader) WroteCompressed

func (out *Uploader) WroteCompressed() int64

func (*Uploader) WroteUncompressed

func (out *Uploader) WroteUncompressed() int64

Jump to

Keyboard shortcuts

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