storage

package
v0.0.0-...-75939a1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 11, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VolumeService

type VolumeService struct {
	storageV1.UnimplementedVolumeServiceServer
	// contains filtered or unexported fields
}

func NewVolumeService

func NewVolumeService(uc *storage.StorageUseCase) *VolumeService

func (*VolumeService) CreateFile

func (s *VolumeService) CreateFile(ctx context.Context, req *storageV1.CreateFileReq) (*v1.Empty, error)

创建文件

func (*VolumeService) CreateVolume

创建存储卷

func (*VolumeService) DelFile

func (s *VolumeService) DelFile(ctx context.Context, req *storageV1.DelFileReq) (*v1.Empty, error)

删除文件

func (*VolumeService) DeleteVolume

func (s *VolumeService) DeleteVolume(ctx context.Context, req *storageV1.DeleteVolumeReq) (*v1.Empty, error)

func (*VolumeService) FileData

获取文件内容

func (*VolumeService) FileDown

获取下载地址

func (*VolumeService) ListFile

文件列表

func (*VolumeService) ListVolume

存储卷列表

func (*VolumeService) MoveAndCopyFile

func (s *VolumeService) MoveAndCopyFile(ctx context.Context, req *storageV1.MoveCopyFileReq) (*v1.Empty, error)

移动/复制文件

func (*VolumeService) RenameFile

func (s *VolumeService) RenameFile(ctx context.Context, req *storageV1.RenameFileReq) (*v1.Empty, error)

重命名文件

func (*VolumeService) SaveFile

func (s *VolumeService) SaveFile(ctx context.Context, req *storageV1.SaveFileReq) (*v1.Empty, error)

创建文件

func (*VolumeService) ServeHTTP

func (s *VolumeService) ServeHTTP(w http2.ResponseWriter, r *http2.Request)

http 文件上传

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL