filesystem

package
v2.0.5+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2019 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const Name = `filesystem`

Variables

This section is empty.

Functions

This section is empty.

Types

type Filesystem

type Filesystem struct {
	context.Context
	Type          string
	UploadURLPath string
	UploadDir     string
}

func NewFilesystem

func NewFilesystem(ctx context.Context, typ string) *Filesystem

func (*Filesystem) Close

func (f *Filesystem) Close() error

func (*Filesystem) Delete

func (f *Filesystem) Delete(dstFile string) error

func (*Filesystem) DeleteDir

func (f *Filesystem) DeleteDir(dstDir string) error

func (*Filesystem) Engine

func (f *Filesystem) Engine() string

func (*Filesystem) Exists

func (f *Filesystem) Exists(file string) (bool, error)

func (*Filesystem) FileInfo

func (f *Filesystem) FileInfo(file string) (os.FileInfo, error)

func (*Filesystem) FixURL

func (f *Filesystem) FixURL(content string, embedded ...bool) string

func (*Filesystem) FixURLWithParams

func (f *Filesystem) FixURLWithParams(content string, values url.Values, embedded ...bool) string

func (*Filesystem) Get

func (f *Filesystem) Get(dstFile string) (io.ReadCloser, error)

func (*Filesystem) PublicURL

func (f *Filesystem) PublicURL(dstFile string) string

func (*Filesystem) Put

func (f *Filesystem) Put(dstFile string, src io.Reader, size int64) (savePath string, viewURL string, err error)

func (*Filesystem) SendFile

func (f *Filesystem) SendFile(ctx echo.Context, file string) error

func (*Filesystem) URLToFile

func (f *Filesystem) URLToFile(publicURL string) string

func (*Filesystem) URLWithParams

func (f *Filesystem) URLWithParams(rawURL string, values url.Values) string

Jump to

Keyboard shortcuts

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