Documentation ¶
Index ¶
- type Config
- type FileSystem
- func (this *FileSystem) AssetFS() (_ assetfs.Interface, err error)
- func (this FileSystem) Delete(path string) error
- func (this *FileSystem) Get(path string) (*os.File, error)
- func (this *FileSystem) GetDynamicURL(scheme, host string, p ...string) (url string)
- func (this *FileSystem) GetEndpoint() *oss.Endpoint
- func (this *FileSystem) GetFullPath(path string) string
- func (this *FileSystem) GetURL(p ...string) (url string)
- func (this *FileSystem) List(path string) ([]*oss.Object, error)
- func (this *FileSystem) Put(path string, reader io.Reader) (*oss.Object, error)
- func (this *FileSystem) ServeHTTP(w http.ResponseWriter, r *http.Request)
- func (this *FileSystem) Stat(path string) (info os.FileInfo, notFound bool, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileSystem ¶
FileSystem file system storage
func (*FileSystem) Get ¶
func (this *FileSystem) Get(path string) (*os.File, error)
Get receive file with given path
func (*FileSystem) GetDynamicURL ¶
func (this *FileSystem) GetDynamicURL(scheme, host string, p ...string) (url string)
func (*FileSystem) GetEndpoint ¶
func (this *FileSystem) GetEndpoint() *oss.Endpoint
GetEndpoint get Endpoint, FileSystem's Endpoint is /
func (*FileSystem) GetFullPath ¶
func (this *FileSystem) GetFullPath(path string) string
GetFullPath get full path from absolute/relative path
func (*FileSystem) GetURL ¶
func (this *FileSystem) GetURL(p ...string) (url string)
func (*FileSystem) List ¶
func (this *FileSystem) List(path string) ([]*oss.Object, error)
List list all objects under current path
func (*FileSystem) ServeHTTP ¶
func (this *FileSystem) ServeHTTP(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.