Documentation
¶
Index ¶
- type Adapter
- func (a *Adapter) CreateDir(ctx context.Context, path string) error
- func (a *Adapter) Delete(ctx context.Context, path string) error
- func (a *Adapter) DeleteDir(ctx context.Context, path string) error
- func (a *Adapter) Download(ctx context.Context, path string) (io.ReadCloser, error)
- func (a *Adapter) Exists(ctx context.Context, path string) (bool, error)
- func (a *Adapter) FileInfo(ctx context.Context, path string) (*filekit.File, error)
- func (a *Adapter) List(ctx context.Context, prefix string) ([]filekit.File, error)
- func (a *Adapter) Upload(ctx context.Context, path string, content io.Reader, options ...filekit.Option) error
- func (a *Adapter) UploadFile(ctx context.Context, path string, localPath string, options ...filekit.Option) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter struct {
// contains filtered or unexported fields
}
Adapter provides a local filesystem implementation of filekit.FileSystem
Click to show internal directories.
Click to hide internal directories.