Documentation ¶
Overview ¶
driver local , store file in local disk
Index ¶
- Variables
- type Addition
- type Local
- func (d *Local) Download(ctx context.Context, req *pb.DownloadRequest) (*pb.DownloadReply, error)
- func (l *Local) GetAddition() vo.Addition
- func (d *Local) GetCap(ctx context.Context) (int64, error)
- func (d *Local) Init(ctx context.Context) error
- func (d *Local) Link(ctx context.Context, dir vo.IDir) (vo.ILink, error)
- func (d *Local) Remove(ctx context.Context, dir vo.IDir) error
- func (d *Local) Upload(ctx context.Context, file *pb.UploadRequest) (*pb.UploadReply, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var Name = "Local"
local Name
Functions ¶
This section is empty.
Types ¶
type Local ¶
type Local struct {
Addition
}
Local
func (*Local) Download ¶
func (d *Local) Download(ctx context.Context, req *pb.DownloadRequest) (*pb.DownloadReply, error)
func (*Local) Upload ¶
func (d *Local) Upload(ctx context.Context, file *pb.UploadRequest) (*pb.UploadReply, error)
Click to show internal directories.
Click to hide internal directories.