Documentation
¶
Index ¶
- type Abstract
- type Adapter
- func (ap *Adapter) Copy(path string, newpath string) error
- func (ap *Adapter) CreateDir(dirname string, conf interfaces.Config) (map[string]string, error)
- func (ap *Adapter) Delete(path string) error
- func (ap *Adapter) DeleteDir(dirname string) error
- func (ap *Adapter) EnsureDirectory(root string) error
- func (ap *Adapter) GetMetadata(path string) (map[string]interface{}, error)
- func (ap *Adapter) GetMimetype(path string) (map[string]interface{}, error)
- func (ap *Adapter) GetSize(path string) (map[string]interface{}, error)
- func (ap *Adapter) GetTimestamp(path string) (map[string]interface{}, error)
- func (ap *Adapter) GetVisibility(path string) (map[string]string, error)
- func (ap *Adapter) Has(string) bool
- func (ap *Adapter) Init(config ...map[string]interface{})
- func (ap *Adapter) ListContents(directory string, recursive ...bool) ([]map[string]interface{}, error)
- func (ap *Adapter) Read(path string) (map[string]interface{}, error)
- func (ap *Adapter) ReadStream(path string) (map[string]interface{}, error)
- func (ap *Adapter) Rename(path string, newpath string) error
- func (ap *Adapter) SetVisibility(path string, visibility string) (map[string]string, error)
- func (ap *Adapter) Update(path string, contents string, conf interfaces.Config) (map[string]interface{}, error)
- func (ap *Adapter) UpdateStream(path string, stream *os.File, conf interfaces.Config) (map[string]interface{}, error)
- func (ap *Adapter) Write(path string, contents string, conf interfaces.Config) (map[string]interface{}, error)
- func (ap *Adapter) WriteStream(path string, stream *os.File, conf interfaces.Config) (map[string]interface{}, 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) GetMetadata ¶
func (*Adapter) GetMimetype ¶
func (*Adapter) GetTimestamp ¶
func (*Adapter) GetVisibility ¶
获取文件的权限
func (*Adapter) ListContents ¶
func (ap *Adapter) ListContents(directory string, recursive ...bool) ([]map[string]interface{}, error)
列出内容
func (*Adapter) ReadStream ¶
func (*Adapter) SetVisibility ¶
设置文件的权限
func (*Adapter) Update ¶
func (ap *Adapter) Update(path string, contents string, conf interfaces.Config) (map[string]interface{}, error)
更新
func (*Adapter) UpdateStream ¶
func (ap *Adapter) UpdateStream(path string, stream *os.File, conf interfaces.Config) (map[string]interface{}, error)
更新
func (*Adapter) Write ¶
func (ap *Adapter) Write(path string, contents string, conf interfaces.Config) (map[string]interface{}, error)
上传
func (*Adapter) WriteStream ¶
func (ap *Adapter) WriteStream(path string, stream *os.File, conf interfaces.Config) (map[string]interface{}, error)
上传 Stream 文件类型
Click to show internal directories.
Click to hide internal directories.