filesystem

package
v2.0.4+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2019 License: AGPL-3.0 Imports: 7 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 {
	Type          string
	UploadURLPath string
	UploadDir     string
}

func NewFilesystem

func NewFilesystem(typ string) *Filesystem

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) 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) (string, error)

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