Documentation
¶
Index ¶
- type Local
- func (this *Local) Copy(path string, newpath string) error
- func (this *Local) CreateDir(dirname string, config interfaces.Config) (map[string]string, error)
- func (this *Local) Delete(path string) error
- func (this *Local) DeleteDir(dirname string) error
- func (this *Local) EnsureDirectory(root string) error
- func (this *Local) GetMetadata(path string) (map[string]any, error)
- func (this *Local) GetMimetype(path string) (map[string]any, error)
- func (this *Local) GetSize(path string) (map[string]any, error)
- func (this *Local) GetTimestamp(path string) (map[string]any, error)
- func (this *Local) GetVisibility(path string) (map[string]string, error)
- func (this *Local) Has(path string) bool
- func (this *Local) ListContents(directory string, recursive ...bool) ([]map[string]any, error)
- func (this *Local) Read(path string) (map[string]any, error)
- func (this *Local) ReadStream(path string) (map[string]any, error)
- func (this *Local) Rename(path string, newpath string) error
- func (this *Local) SetVisibility(path string, visibility string) (map[string]string, error)
- func (this *Local) Update(path string, contents []byte, conf interfaces.Config) (map[string]any, error)
- func (this *Local) UpdateStream(path string, stream io.Reader, config interfaces.Config) (map[string]any, error)
- func (this *Local) Write(path string, contents []byte, conf interfaces.Config) (map[string]any, error)
- func (this *Local) WriteStream(path string, stream io.Reader, conf interfaces.Config) (map[string]any, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Local ¶
*
- 本地文件适配器 / Local adapter *
- @create 2021-8-1
- @author deatil
func (*Local) GetVisibility ¶
设置文件的权限
func (*Local) ListContents ¶
列出内容
func (*Local) ReadStream ¶
读取成文件流 打开文件需要手动关闭
func (*Local) SetVisibility ¶
设置文件的权限
func (*Local) Update ¶
func (this *Local) Update(path string, contents []byte, conf interfaces.Config) (map[string]any, error)
更新
func (*Local) UpdateStream ¶
func (this *Local) UpdateStream(path string, stream io.Reader, config interfaces.Config) (map[string]any, error)
更新
Click to show internal directories.
Click to hide internal directories.