filesystem

package
v0.0.0-...-02bf646 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2021 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileSystem

type FileSystem struct {
	media.Base
}

FileSystem defined a media library storage using file system

func (FileSystem) GetFullPath

func (f FileSystem) GetFullPath(url string, option *media.Option) (path string, err error)

GetFullPath return full file path from a relative file path

func (FileSystem) Retrieve

func (f FileSystem) Retrieve(url string) (media.FileInterface, error)

Retrieve retrieve file content with url

func (FileSystem) Store

func (f FileSystem) Store(name string, option *media.Option, reader io.Reader) (err error)

Store save reader's context with name

Jump to

Keyboard shortcuts

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