client

package
v0.0.0-...-943f040 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteFile

func DeleteFile(nameNodeInstance *rpc.Client, remoteFilePath string, filename string) (deleteFileStatus bool)

DeleteFile 删除远端文件

func DeletePath

func DeletePath(nameNodeInstance *rpc.Client, remoteFilePath string) (deletePathStatus bool)

DeletePath 删除远端文件目录

func Get

func Get(nameNodeInstance *rpc.Client, remoteFilepath string, fileName string, local_file_path string) (getStatus bool)

Get 从远端下载文件,返回结果:下载是否成功

func List

func List(nameNodeInstance *rpc.Client, remoteDirName string) (fileInfo map[string]uint64)

List 展示文件目录下面的文件信息, 传入文件目录,返回文件信息

func Mkdir

func Mkdir(nameNodeInstance *rpc.Client, remoteFilePath string) (mkDir bool)

Mkdir 创建远端存储文件目录,返回创建成功与否

func Put

func Put(nameNodeInstance *rpc.Client, sourcePath string, fileName string, remotefilepath string) (putStatus bool)

Put 上传文件

func ReName

func ReName(nameNodeInstance *rpc.Client, renameSrcPath string, renameDestPath string) (reNameStatus bool)

ReName 文件夹的重命名 返回重命名是否成功

func ReNameFile

func ReNameFile(nameNodeInstance *rpc.Client, renameSrcFile string, renameDestFile string) (reNameStatus bool)

ReNameFile 文件的重命名,返回文件重命名是否成功

func Stat

func Stat(nameNodeInstance *rpc.Client, remoteFilePath string, fileName string) (filename string, filesize uint64)

Stat 获取文件元数据信息:文件名+文件大小

Types

This section is empty.

Jump to

Keyboard shortcuts

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