Documentation
¶
Index ¶
- type Abstract
- type Adapter
- func (this *Adapter) Copy(path string, newpath string) error
- func (this *Adapter) CreateDir(dirname string, conf interfaces.Config) (map[string]string, error)
- func (this *Adapter) Delete(path string) error
- func (this *Adapter) DeleteDir(dirname string) error
- func (this *Adapter) GetMetadata(path string) (map[string]any, error)
- func (this *Adapter) GetMimetype(path string) (map[string]any, error)
- func (this *Adapter) GetSize(path string) (map[string]any, error)
- func (this *Adapter) GetTimestamp(path string) (map[string]any, error)
- func (this *Adapter) GetVisibility(path string) (map[string]string, error)
- func (this *Adapter) Has(string) bool
- func (this *Adapter) ListContents(directory string, recursive ...bool) ([]map[string]any, error)
- func (this *Adapter) Read(path string) (map[string]any, error)
- func (this *Adapter) ReadStream(path string) (map[string]any, error)
- func (this *Adapter) Rename(path string, newpath string) error
- func (this *Adapter) SetVisibility(path string, visibility string) (map[string]string, error)
- func (this *Adapter) Update(path string, contents []byte, conf interfaces.Config) (map[string]any, error)
- func (this *Adapter) UpdateStream(path string, stream io.Reader, conf interfaces.Config) (map[string]any, error)
- func (this *Adapter) Write(path string, contents []byte, conf interfaces.Config) (map[string]any, error)
- func (this *Adapter) 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 Abstract ¶
type Abstract struct {
// contains filtered or unexported fields
}
*
- 通用基类 *
- @create 2021-8-1
- @author deatil
type Adapter ¶
type Adapter struct {
Abstract
}
*
- 空适配器 *
- @create 2021-8-1
- @author deatil
func (*Adapter) GetTimestamp ¶
func (*Adapter) GetVisibility ¶
获取文件的权限
func (*Adapter) ListContents ¶
列出内容
func (*Adapter) ReadStream ¶
读取数据为数据流
func (*Adapter) SetVisibility ¶
设置文件的权限
func (*Adapter) Update ¶
func (this *Adapter) Update(path string, contents []byte, conf interfaces.Config) (map[string]any, error)
更新
func (*Adapter) UpdateStream ¶
func (this *Adapter) UpdateStream(path string, stream io.Reader, conf interfaces.Config) (map[string]any, error)
更新
Click to show internal directories.
Click to hide internal directories.