Documentation ¶
Index ¶
- Constants
- type Filesystem
- func (f *Filesystem) Close() error
- func (f *Filesystem) Delete(dstFile string) error
- func (f *Filesystem) DeleteDir(dstDir string) error
- func (f *Filesystem) Engine() string
- func (f *Filesystem) Exists(file string) (bool, error)
- func (f *Filesystem) FileInfo(file string) (os.FileInfo, error)
- func (f *Filesystem) FixURL(content string, embedded ...bool) string
- func (f *Filesystem) FixURLWithParams(content string, values url.Values, embedded ...bool) string
- func (f *Filesystem) Get(dstFile string) (io.ReadCloser, error)
- func (f *Filesystem) PublicURL(dstFile string) string
- func (f *Filesystem) Put(dstFile string, src io.Reader, size int64) (savePath string, viewURL string, err error)
- func (f *Filesystem) SendFile(ctx echo.Context, file string) error
- func (f *Filesystem) URLToFile(publicURL string) string
- func (f *Filesystem) URLWithParams(rawURL string, values url.Values) string
Constants ¶
View Source
const Name = `filesystem`
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Filesystem ¶
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) FixURLWithParams ¶
func (*Filesystem) Get ¶
func (f *Filesystem) Get(dstFile string) (io.ReadCloser, error)
func (*Filesystem) PublicURL ¶
func (f *Filesystem) PublicURL(dstFile string) string
func (*Filesystem) URLToFile ¶
func (f *Filesystem) URLToFile(publicURL string) string
func (*Filesystem) URLWithParams ¶
func (f *Filesystem) URLWithParams(rawURL string, values url.Values) string
Click to show internal directories.
Click to hide internal directories.