Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterFileServerServer(s grpc.ServiceRegistrar, srv FileServerServer)
- type ACL
- type ChangeDirRequest
- func (*ChangeDirRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ChangeDirRequest) GetFid() *FID
- func (x *ChangeDirRequest) GetPath() string
- func (x *ChangeDirRequest) GetRootFid() *FID
- func (*ChangeDirRequest) ProtoMessage()
- func (x *ChangeDirRequest) ProtoReflect() protoreflect.Message
- func (x *ChangeDirRequest) Reset()
- func (x *ChangeDirRequest) String() string
- type ChangeDirResponse
- func (*ChangeDirResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ChangeDirResponse) GetError() string
- func (x *ChangeDirResponse) GetNewFid() *FID
- func (x *ChangeDirResponse) GetSuccess() bool
- func (*ChangeDirResponse) ProtoMessage()
- func (x *ChangeDirResponse) ProtoReflect() protoreflect.Message
- func (x *ChangeDirResponse) Reset()
- func (x *ChangeDirResponse) String() string
- type CloseFileRequest
- func (*CloseFileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CloseFileRequest) GetClientId() string
- func (x *CloseFileRequest) GetFid() *FID
- func (*CloseFileRequest) ProtoMessage()
- func (x *CloseFileRequest) ProtoReflect() protoreflect.Message
- func (x *CloseFileRequest) Reset()
- func (x *CloseFileRequest) String() string
- type CloseFileResponse
- func (*CloseFileResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CloseFileResponse) GetError() string
- func (x *CloseFileResponse) GetSuccess() bool
- func (*CloseFileResponse) ProtoMessage()
- func (x *CloseFileResponse) ProtoReflect() protoreflect.Message
- func (x *CloseFileResponse) Reset()
- func (x *CloseFileResponse) String() string
- type CreateFileRequest
- func (*CreateFileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateFileRequest) GetFid() *FID
- func (x *CreateFileRequest) GetName() string
- func (x *CreateFileRequest) GetRootUser() string
- func (x *CreateFileRequest) GetSize() uint64
- func (x *CreateFileRequest) GetType() InodeType
- func (*CreateFileRequest) ProtoMessage()
- func (x *CreateFileRequest) ProtoReflect() protoreflect.Message
- func (x *CreateFileRequest) Reset()
- func (x *CreateFileRequest) String() string
- type CreateFileResponse
- func (*CreateFileResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateFileResponse) GetError() string
- func (x *CreateFileResponse) GetFid() *FID
- func (x *CreateFileResponse) GetSuccess() bool
- func (*CreateFileResponse) ProtoMessage()
- func (x *CreateFileResponse) ProtoReflect() protoreflect.Message
- func (x *CreateFileResponse) Reset()
- func (x *CreateFileResponse) String() string
- type DeleteFileRequest
- func (*DeleteFileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteFileRequest) GetFid() *FID
- func (x *DeleteFileRequest) GetRecursive() bool
- func (x *DeleteFileRequest) GetRootUser() string
- func (*DeleteFileRequest) ProtoMessage()
- func (x *DeleteFileRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteFileRequest) Reset()
- func (x *DeleteFileRequest) String() string
- type DeleteFileResponse
- func (*DeleteFileResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteFileResponse) GetError() string
- func (x *DeleteFileResponse) GetSuccess() bool
- func (*DeleteFileResponse) ProtoMessage()
- func (x *DeleteFileResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteFileResponse) Reset()
- func (x *DeleteFileResponse) String() string
- type DirEntry
- func (*DirEntry) Descriptor() ([]byte, []int)deprecated
- func (x *DirEntry) GetFid() *FID
- func (x *DirEntry) GetName() string
- func (x *DirEntry) GetSize() uint64
- func (x *DirEntry) GetType() InodeType
- func (*DirEntry) ProtoMessage()
- func (x *DirEntry) ProtoReflect() protoreflect.Message
- func (x *DirEntry) Reset()
- func (x *DirEntry) String() string
- type DownloadFileRequest
- func (*DownloadFileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DownloadFileRequest) GetName() string
- func (x *DownloadFileRequest) GetParentFid() *FID
- func (*DownloadFileRequest) ProtoMessage()
- func (x *DownloadFileRequest) ProtoReflect() protoreflect.Message
- func (x *DownloadFileRequest) Reset()
- func (x *DownloadFileRequest) String() string
- type DownloadFileResponse
- func (*DownloadFileResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DownloadFileResponse) GetChunk() []byte
- func (x *DownloadFileResponse) GetError() string
- func (x *DownloadFileResponse) GetOffset() uint64
- func (x *DownloadFileResponse) GetSuccess() bool
- func (*DownloadFileResponse) ProtoMessage()
- func (x *DownloadFileResponse) ProtoReflect() protoreflect.Message
- func (x *DownloadFileResponse) Reset()
- func (x *DownloadFileResponse) String() string
- type FID
- type FileServerClient
- type FileServerServer
- type FileServer_DownloadFileClient
- type FileServer_DownloadFileServer
- type FileServer_UploadFileClient
- type FileServer_UploadFileServer
- type GetAttrRequest
- type GetAttrResponse
- func (*GetAttrResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetAttrResponse) GetError() string
- func (x *GetAttrResponse) GetName() string
- func (x *GetAttrResponse) GetSize() uint64
- func (x *GetAttrResponse) GetSuccess() bool
- func (x *GetAttrResponse) GetType() InodeType
- func (x *GetAttrResponse) GetVersion() uint64
- func (*GetAttrResponse) ProtoMessage()
- func (x *GetAttrResponse) ProtoReflect() protoreflect.Message
- func (x *GetAttrResponse) Reset()
- func (x *GetAttrResponse) String() string
- type InodeType
- type ListDirRequest
- type ListDirResponse
- func (*ListDirResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListDirResponse) GetEntries() []*DirEntry
- func (x *ListDirResponse) GetError() string
- func (x *ListDirResponse) GetSuccess() bool
- func (*ListDirResponse) ProtoMessage()
- func (x *ListDirResponse) ProtoReflect() protoreflect.Message
- func (x *ListDirResponse) Reset()
- func (x *ListDirResponse) String() string
- type LookupRequest
- func (*LookupRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LookupRequest) GetName() string
- func (x *LookupRequest) GetParentFid() *FID
- func (*LookupRequest) ProtoMessage()
- func (x *LookupRequest) ProtoReflect() protoreflect.Message
- func (x *LookupRequest) Reset()
- func (x *LookupRequest) String() string
- type LookupResponse
- func (*LookupResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LookupResponse) GetError() string
- func (x *LookupResponse) GetFid() *FID
- func (x *LookupResponse) GetSuccess() bool
- func (*LookupResponse) ProtoMessage()
- func (x *LookupResponse) ProtoReflect() protoreflect.Message
- func (x *LookupResponse) Reset()
- func (x *LookupResponse) String() string
- type OpenFileRequest
- func (*OpenFileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *OpenFileRequest) GetClientId() string
- func (x *OpenFileRequest) GetFid() *FID
- func (*OpenFileRequest) ProtoMessage()
- func (x *OpenFileRequest) ProtoReflect() protoreflect.Message
- func (x *OpenFileRequest) Reset()
- func (x *OpenFileRequest) String() string
- type OpenFileResponse
- func (*OpenFileResponse) Descriptor() ([]byte, []int)deprecated
- func (x *OpenFileResponse) GetError() string
- func (x *OpenFileResponse) GetFileSize() uint64
- func (x *OpenFileResponse) GetSuccess() bool
- func (x *OpenFileResponse) GetVersion() uint64
- func (*OpenFileResponse) ProtoMessage()
- func (x *OpenFileResponse) ProtoReflect() protoreflect.Message
- func (x *OpenFileResponse) Reset()
- func (x *OpenFileResponse) String() string
- type PathRequest
- func (*PathRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PathRequest) GetDisplayName() string
- func (x *PathRequest) GetFid() *FID
- func (x *PathRequest) GetRootUser() string
- func (*PathRequest) ProtoMessage()
- func (x *PathRequest) ProtoReflect() protoreflect.Message
- func (x *PathRequest) Reset()
- func (x *PathRequest) String() string
- type PathResponse
- func (*PathResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PathResponse) GetError() string
- func (x *PathResponse) GetPath() string
- func (x *PathResponse) GetSuccess() bool
- func (*PathResponse) ProtoMessage()
- func (x *PathResponse) ProtoReflect() protoreflect.Message
- func (x *PathResponse) Reset()
- func (x *PathResponse) String() string
- type ReadFileRequest
- func (*ReadFileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ReadFileRequest) GetLength() uint64
- func (x *ReadFileRequest) GetName() string
- func (x *ReadFileRequest) GetOffset() uint64
- func (x *ReadFileRequest) GetParentFid() *FID
- func (*ReadFileRequest) ProtoMessage()
- func (x *ReadFileRequest) ProtoReflect() protoreflect.Message
- func (x *ReadFileRequest) Reset()
- func (x *ReadFileRequest) String() string
- type ReadFileResponse
- func (*ReadFileResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ReadFileResponse) GetData() []byte
- func (x *ReadFileResponse) GetError() string
- func (x *ReadFileResponse) GetSuccess() bool
- func (*ReadFileResponse) ProtoMessage()
- func (x *ReadFileResponse) ProtoReflect() protoreflect.Message
- func (x *ReadFileResponse) Reset()
- func (x *ReadFileResponse) String() string
- type RegisterClientRequest
- func (*RegisterClientRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterClientRequest) GetCallbackAddress() string
- func (x *RegisterClientRequest) GetClientId() string
- func (x *RegisterClientRequest) GetRootPath() string
- func (x *RegisterClientRequest) GetRootUser() string
- func (x *RegisterClientRequest) GetUsername() string
- func (*RegisterClientRequest) ProtoMessage()
- func (x *RegisterClientRequest) ProtoReflect() protoreflect.Message
- func (x *RegisterClientRequest) Reset()
- func (x *RegisterClientRequest) String() string
- type RegisterClientResponse
- func (*RegisterClientResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterClientResponse) GetError() string
- func (x *RegisterClientResponse) GetSuccess() bool
- func (x *RegisterClientResponse) GetUserRootFid() *FID
- func (*RegisterClientResponse) ProtoMessage()
- func (x *RegisterClientResponse) ProtoReflect() protoreflect.Message
- func (x *RegisterClientResponse) Reset()
- func (x *RegisterClientResponse) String() string
- type RestoreFileRequest
- func (*RestoreFileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RestoreFileRequest) GetFid() *FID
- func (x *RestoreFileRequest) GetRootUser() string
- func (x *RestoreFileRequest) GetUsername() string
- func (*RestoreFileRequest) ProtoMessage()
- func (x *RestoreFileRequest) ProtoReflect() protoreflect.Message
- func (x *RestoreFileRequest) Reset()
- func (x *RestoreFileRequest) String() string
- type RestoreFileResponse
- func (*RestoreFileResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RestoreFileResponse) GetError() string
- func (x *RestoreFileResponse) GetRestoredName() string
- func (x *RestoreFileResponse) GetSuccess() bool
- func (*RestoreFileResponse) ProtoMessage()
- func (x *RestoreFileResponse) ProtoReflect() protoreflect.Message
- func (x *RestoreFileResponse) Reset()
- func (x *RestoreFileResponse) String() string
- type SetQuotaRequest
- func (*SetQuotaRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SetQuotaRequest) GetQuotaBytes() uint64
- func (x *SetQuotaRequest) GetUsername() string
- func (*SetQuotaRequest) ProtoMessage()
- func (x *SetQuotaRequest) ProtoReflect() protoreflect.Message
- func (x *SetQuotaRequest) Reset()
- func (x *SetQuotaRequest) String() string
- type SetQuotaResponse
- func (*SetQuotaResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SetQuotaResponse) GetError() string
- func (x *SetQuotaResponse) GetSuccess() bool
- func (*SetQuotaResponse) ProtoMessage()
- func (x *SetQuotaResponse) ProtoReflect() protoreflect.Message
- func (x *SetQuotaResponse) Reset()
- func (x *SetQuotaResponse) String() string
- type ShareRequest
- func (*ShareRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ShareRequest) GetFid() *FID
- func (x *ShareRequest) GetShareWith() string
- func (x *ShareRequest) GetUsername() string
- func (*ShareRequest) ProtoMessage()
- func (x *ShareRequest) ProtoReflect() protoreflect.Message
- func (x *ShareRequest) Reset()
- func (x *ShareRequest) String() string
- type ShareResponse
- func (*ShareResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ShareResponse) GetError() string
- func (x *ShareResponse) GetSuccess() bool
- func (*ShareResponse) ProtoMessage()
- func (x *ShareResponse) ProtoReflect() protoreflect.Message
- func (x *ShareResponse) Reset()
- func (x *ShareResponse) String() string
- type ShowTrashRequest
- func (*ShowTrashRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ShowTrashRequest) GetRootUser() string
- func (x *ShowTrashRequest) GetUsername() string
- func (*ShowTrashRequest) ProtoMessage()
- func (x *ShowTrashRequest) ProtoReflect() protoreflect.Message
- func (x *ShowTrashRequest) Reset()
- func (x *ShowTrashRequest) String() string
- type ShowTrashResponse
- func (*ShowTrashResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ShowTrashResponse) GetEntries() []*DirEntry
- func (x *ShowTrashResponse) GetError() string
- func (x *ShowTrashResponse) GetSuccess() bool
- func (*ShowTrashResponse) ProtoMessage()
- func (x *ShowTrashResponse) ProtoReflect() protoreflect.Message
- func (x *ShowTrashResponse) Reset()
- func (x *ShowTrashResponse) String() string
- type TrashFileRequest
- func (*TrashFileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TrashFileRequest) GetFid() *FID
- func (x *TrashFileRequest) GetRecursive() bool
- func (x *TrashFileRequest) GetRootUser() string
- func (*TrashFileRequest) ProtoMessage()
- func (x *TrashFileRequest) ProtoReflect() protoreflect.Message
- func (x *TrashFileRequest) Reset()
- func (x *TrashFileRequest) String() string
- type TrashFileResponse
- func (*TrashFileResponse) Descriptor() ([]byte, []int)deprecated
- func (x *TrashFileResponse) GetError() string
- func (x *TrashFileResponse) GetSuccess() bool
- func (x *TrashFileResponse) GetTrashedName() string
- func (*TrashFileResponse) ProtoMessage()
- func (x *TrashFileResponse) ProtoReflect() protoreflect.Message
- func (x *TrashFileResponse) Reset()
- func (x *TrashFileResponse) String() string
- type UnimplementedFileServerServer
- func (UnimplementedFileServerServer) ChangeDir(context.Context, *ChangeDirRequest) (*ChangeDirResponse, error)
- func (UnimplementedFileServerServer) CloseFile(context.Context, *CloseFileRequest) (*CloseFileResponse, error)
- func (UnimplementedFileServerServer) CreateFile(context.Context, *CreateFileRequest) (*CreateFileResponse, error)
- func (UnimplementedFileServerServer) DeleteFile(context.Context, *DeleteFileRequest) (*DeleteFileResponse, error)
- func (UnimplementedFileServerServer) DownloadFile(*DownloadFileRequest, grpc.ServerStreamingServer[DownloadFileResponse]) error
- func (UnimplementedFileServerServer) GetAttr(context.Context, *GetAttrRequest) (*GetAttrResponse, error)
- func (UnimplementedFileServerServer) ListDir(context.Context, *ListDirRequest) (*ListDirResponse, error)
- func (UnimplementedFileServerServer) Lookup(context.Context, *LookupRequest) (*LookupResponse, error)
- func (UnimplementedFileServerServer) OpenFile(context.Context, *OpenFileRequest) (*OpenFileResponse, error)
- func (UnimplementedFileServerServer) Path(context.Context, *PathRequest) (*PathResponse, error)
- func (UnimplementedFileServerServer) ReadFile(context.Context, *ReadFileRequest) (*ReadFileResponse, error)
- func (UnimplementedFileServerServer) RegisterClient(context.Context, *RegisterClientRequest) (*RegisterClientResponse, error)
- func (UnimplementedFileServerServer) RestoreFile(context.Context, *RestoreFileRequest) (*RestoreFileResponse, error)
- func (UnimplementedFileServerServer) SetQuota(context.Context, *SetQuotaRequest) (*SetQuotaResponse, error)
- func (UnimplementedFileServerServer) Share(context.Context, *ShareRequest) (*ShareResponse, error)
- func (UnimplementedFileServerServer) ShowTrash(context.Context, *ShowTrashRequest) (*ShowTrashResponse, error)
- func (UnimplementedFileServerServer) TrashFile(context.Context, *TrashFileRequest) (*TrashFileResponse, error)
- func (UnimplementedFileServerServer) UnregisterClient(context.Context, *UnregisterClientRequest) (*UnregisterClientResponse, error)
- func (UnimplementedFileServerServer) Unshare(context.Context, *UnshareRequest) (*UnshareResponse, error)
- func (UnimplementedFileServerServer) UploadFile(grpc.ClientStreamingServer[UploadFileRequest, UploadFileResponse]) error
- func (UnimplementedFileServerServer) WriteFile(context.Context, *WriteFileRequest) (*WriteFileResponse, error)
- type UnregisterClientRequest
- func (*UnregisterClientRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UnregisterClientRequest) GetClientId() string
- func (x *UnregisterClientRequest) GetUsername() string
- func (*UnregisterClientRequest) ProtoMessage()
- func (x *UnregisterClientRequest) ProtoReflect() protoreflect.Message
- func (x *UnregisterClientRequest) Reset()
- func (x *UnregisterClientRequest) String() string
- type UnregisterClientResponse
- func (*UnregisterClientResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UnregisterClientResponse) GetError() string
- func (x *UnregisterClientResponse) GetSuccess() bool
- func (*UnregisterClientResponse) ProtoMessage()
- func (x *UnregisterClientResponse) ProtoReflect() protoreflect.Message
- func (x *UnregisterClientResponse) Reset()
- func (x *UnregisterClientResponse) String() string
- type UnsafeFileServerServer
- type UnshareRequest
- func (*UnshareRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UnshareRequest) GetFid() *FID
- func (x *UnshareRequest) GetUnshareWith() string
- func (x *UnshareRequest) GetUsername() string
- func (*UnshareRequest) ProtoMessage()
- func (x *UnshareRequest) ProtoReflect() protoreflect.Message
- func (x *UnshareRequest) Reset()
- func (x *UnshareRequest) String() string
- type UnshareResponse
- func (*UnshareResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UnshareResponse) GetError() string
- func (x *UnshareResponse) GetSuccess() bool
- func (*UnshareResponse) ProtoMessage()
- func (x *UnshareResponse) ProtoReflect() protoreflect.Message
- func (x *UnshareResponse) Reset()
- func (x *UnshareResponse) String() string
- type UploadFileRequest
- func (*UploadFileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UploadFileRequest) GetChunk() []byte
- func (x *UploadFileRequest) GetName() string
- func (x *UploadFileRequest) GetOffset() uint64
- func (x *UploadFileRequest) GetParentFid() *FID
- func (x *UploadFileRequest) GetUser() string
- func (*UploadFileRequest) ProtoMessage()
- func (x *UploadFileRequest) ProtoReflect() protoreflect.Message
- func (x *UploadFileRequest) Reset()
- func (x *UploadFileRequest) String() string
- type UploadFileResponse
- func (*UploadFileResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UploadFileResponse) GetError() string
- func (x *UploadFileResponse) GetSuccess() bool
- func (*UploadFileResponse) ProtoMessage()
- func (x *UploadFileResponse) ProtoReflect() protoreflect.Message
- func (x *UploadFileResponse) Reset()
- func (x *UploadFileResponse) String() string
- type WriteFileRequest
- func (*WriteFileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *WriteFileRequest) GetData() []byte
- func (x *WriteFileRequest) GetName() string
- func (x *WriteFileRequest) GetOffset() uint64
- func (x *WriteFileRequest) GetParentFid() *FID
- func (*WriteFileRequest) ProtoMessage()
- func (x *WriteFileRequest) ProtoReflect() protoreflect.Message
- func (x *WriteFileRequest) Reset()
- func (x *WriteFileRequest) String() string
- type WriteFileResponse
- func (*WriteFileResponse) Descriptor() ([]byte, []int)deprecated
- func (x *WriteFileResponse) GetError() string
- func (x *WriteFileResponse) GetSuccess() bool
- func (x *WriteFileResponse) GetVersion() uint64
- func (*WriteFileResponse) ProtoMessage()
- func (x *WriteFileResponse) ProtoReflect() protoreflect.Message
- func (x *WriteFileResponse) Reset()
- func (x *WriteFileResponse) String() string
Constants ¶
const ( FileServer_RegisterClient_FullMethodName = "/fileserver.FileServer/RegisterClient" FileServer_UnregisterClient_FullMethodName = "/fileserver.FileServer/UnregisterClient" FileServer_CreateFile_FullMethodName = "/fileserver.FileServer/CreateFile" FileServer_OpenFile_FullMethodName = "/fileserver.FileServer/OpenFile" FileServer_ReadFile_FullMethodName = "/fileserver.FileServer/ReadFile" FileServer_WriteFile_FullMethodName = "/fileserver.FileServer/WriteFile" FileServer_CloseFile_FullMethodName = "/fileserver.FileServer/CloseFile" FileServer_DeleteFile_FullMethodName = "/fileserver.FileServer/DeleteFile" FileServer_TrashFile_FullMethodName = "/fileserver.FileServer/TrashFile" FileServer_RestoreFile_FullMethodName = "/fileserver.FileServer/RestoreFile" FileServer_ShowTrash_FullMethodName = "/fileserver.FileServer/ShowTrash" FileServer_GetAttr_FullMethodName = "/fileserver.FileServer/GetAttr" FileServer_ListDir_FullMethodName = "/fileserver.FileServer/ListDir" FileServer_Lookup_FullMethodName = "/fileserver.FileServer/Lookup" FileServer_Path_FullMethodName = "/fileserver.FileServer/Path" FileServer_ChangeDir_FullMethodName = "/fileserver.FileServer/ChangeDir" FileServer_UploadFile_FullMethodName = "/fileserver.FileServer/UploadFile" FileServer_DownloadFile_FullMethodName = "/fileserver.FileServer/DownloadFile" FileServer_SetQuota_FullMethodName = "/fileserver.FileServer/SetQuota" )
Variables ¶
var ( InodeType_name = map[int32]string{ 0: "FILE", 1: "DIRECTORY", } InodeType_value = map[string]int32{ "FILE": 0, "DIRECTORY": 1, } )
Enum value maps for InodeType.
var FileServer_ServiceDesc = grpc.ServiceDesc{ ServiceName: "fileserver.FileServer", HandlerType: (*FileServerServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "RegisterClient", Handler: _FileServer_RegisterClient_Handler, }, { MethodName: "UnregisterClient", Handler: _FileServer_UnregisterClient_Handler, }, { MethodName: "CreateFile", Handler: _FileServer_CreateFile_Handler, }, { MethodName: "OpenFile", Handler: _FileServer_OpenFile_Handler, }, { MethodName: "ReadFile", Handler: _FileServer_ReadFile_Handler, }, { MethodName: "WriteFile", Handler: _FileServer_WriteFile_Handler, }, { MethodName: "CloseFile", Handler: _FileServer_CloseFile_Handler, }, { MethodName: "DeleteFile", Handler: _FileServer_DeleteFile_Handler, }, { MethodName: "TrashFile", Handler: _FileServer_TrashFile_Handler, }, { MethodName: "RestoreFile", Handler: _FileServer_RestoreFile_Handler, }, { MethodName: "ShowTrash", Handler: _FileServer_ShowTrash_Handler, }, { MethodName: "GetAttr", Handler: _FileServer_GetAttr_Handler, }, { MethodName: "ListDir", Handler: _FileServer_ListDir_Handler, }, { MethodName: "Lookup", Handler: _FileServer_Lookup_Handler, }, { MethodName: "Path", Handler: _FileServer_Path_Handler, }, { MethodName: "ChangeDir", Handler: _FileServer_ChangeDir_Handler, }, { MethodName: "Share", Handler: _FileServer_Share_Handler, }, { MethodName: "Unshare", Handler: _FileServer_Unshare_Handler, }, { MethodName: "SetQuota", Handler: _FileServer_SetQuota_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "UploadFile", Handler: _FileServer_UploadFile_Handler, ClientStreams: true, }, { StreamName: "DownloadFile", Handler: _FileServer_DownloadFile_Handler, ServerStreams: true, }, }, Metadata: "api/fileserver/fileserver.proto", }
FileServer_ServiceDesc is the grpc.ServiceDesc for FileServer service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_api_fileserver_fileserver_proto protoreflect.FileDescriptor
Functions ¶
func RegisterFileServerServer ¶
func RegisterFileServerServer(s grpc.ServiceRegistrar, srv FileServerServer)
Types ¶
type ACL ¶
type ACL struct {
ReadUsers []string `protobuf:"bytes,1,rep,name=read_users,json=readUsers,proto3" json:"read_users,omitempty"`
WriteUsers []string `protobuf:"bytes,2,rep,name=write_users,json=writeUsers,proto3" json:"write_users,omitempty"`
// contains filtered or unexported fields
}
Access Control List
func (*ACL) Descriptor
deprecated
func (*ACL) GetReadUsers ¶
func (*ACL) GetWriteUsers ¶
func (*ACL) ProtoMessage ¶
func (*ACL) ProtoMessage()
func (*ACL) ProtoReflect ¶
func (x *ACL) ProtoReflect() protoreflect.Message
type ChangeDirRequest ¶
type ChangeDirRequest struct {
Fid *FID `protobuf:"bytes,1,opt,name=fid,proto3" json:"fid,omitempty"`
RootFid *FID `protobuf:"bytes,2,opt,name=root_fid,json=rootFid,proto3" json:"root_fid,omitempty"`
Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"`
// contains filtered or unexported fields
}
func (*ChangeDirRequest) Descriptor
deprecated
func (*ChangeDirRequest) Descriptor() ([]byte, []int)
Deprecated: Use ChangeDirRequest.ProtoReflect.Descriptor instead.
func (*ChangeDirRequest) GetFid ¶
func (x *ChangeDirRequest) GetFid() *FID
func (*ChangeDirRequest) GetPath ¶
func (x *ChangeDirRequest) GetPath() string
func (*ChangeDirRequest) GetRootFid ¶
func (x *ChangeDirRequest) GetRootFid() *FID
func (*ChangeDirRequest) ProtoMessage ¶
func (*ChangeDirRequest) ProtoMessage()
func (*ChangeDirRequest) ProtoReflect ¶
func (x *ChangeDirRequest) ProtoReflect() protoreflect.Message
func (*ChangeDirRequest) Reset ¶
func (x *ChangeDirRequest) Reset()
func (*ChangeDirRequest) String ¶
func (x *ChangeDirRequest) String() string
type ChangeDirResponse ¶
type ChangeDirResponse struct {
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
NewFid *FID `protobuf:"bytes,3,opt,name=new_fid,json=newFid,proto3" json:"new_fid,omitempty"` // FID of new directory
// contains filtered or unexported fields
}
func (*ChangeDirResponse) Descriptor
deprecated
func (*ChangeDirResponse) Descriptor() ([]byte, []int)
Deprecated: Use ChangeDirResponse.ProtoReflect.Descriptor instead.
func (*ChangeDirResponse) GetError ¶
func (x *ChangeDirResponse) GetError() string
func (*ChangeDirResponse) GetNewFid ¶
func (x *ChangeDirResponse) GetNewFid() *FID
func (*ChangeDirResponse) GetSuccess ¶
func (x *ChangeDirResponse) GetSuccess() bool
func (*ChangeDirResponse) ProtoMessage ¶
func (*ChangeDirResponse) ProtoMessage()
func (*ChangeDirResponse) ProtoReflect ¶
func (x *ChangeDirResponse) ProtoReflect() protoreflect.Message
func (*ChangeDirResponse) Reset ¶
func (x *ChangeDirResponse) Reset()
func (*ChangeDirResponse) String ¶
func (x *ChangeDirResponse) String() string
type CloseFileRequest ¶
type CloseFileRequest struct {
Fid *FID `protobuf:"bytes,1,opt,name=fid,proto3" json:"fid,omitempty"`
ClientId string `protobuf:"bytes,2,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
// contains filtered or unexported fields
}
func (*CloseFileRequest) Descriptor
deprecated
func (*CloseFileRequest) Descriptor() ([]byte, []int)
Deprecated: Use CloseFileRequest.ProtoReflect.Descriptor instead.
func (*CloseFileRequest) GetClientId ¶
func (x *CloseFileRequest) GetClientId() string
func (*CloseFileRequest) GetFid ¶
func (x *CloseFileRequest) GetFid() *FID
func (*CloseFileRequest) ProtoMessage ¶
func (*CloseFileRequest) ProtoMessage()
func (*CloseFileRequest) ProtoReflect ¶
func (x *CloseFileRequest) ProtoReflect() protoreflect.Message
func (*CloseFileRequest) Reset ¶
func (x *CloseFileRequest) Reset()
func (*CloseFileRequest) String ¶
func (x *CloseFileRequest) String() string
type CloseFileResponse ¶
type CloseFileResponse struct {
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
// contains filtered or unexported fields
}
func (*CloseFileResponse) Descriptor
deprecated
func (*CloseFileResponse) Descriptor() ([]byte, []int)
Deprecated: Use CloseFileResponse.ProtoReflect.Descriptor instead.
func (*CloseFileResponse) GetError ¶
func (x *CloseFileResponse) GetError() string
func (*CloseFileResponse) GetSuccess ¶
func (x *CloseFileResponse) GetSuccess() bool
func (*CloseFileResponse) ProtoMessage ¶
func (*CloseFileResponse) ProtoMessage()
func (*CloseFileResponse) ProtoReflect ¶
func (x *CloseFileResponse) ProtoReflect() protoreflect.Message
func (*CloseFileResponse) Reset ¶
func (x *CloseFileResponse) Reset()
func (*CloseFileResponse) String ¶
func (x *CloseFileResponse) String() string
type CreateFileRequest ¶
type CreateFileRequest struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Fid *FID `protobuf:"bytes,2,opt,name=fid,proto3" json:"fid,omitempty"`
Type InodeType `protobuf:"varint,3,opt,name=type,proto3,enum=fileserver.InodeType" json:"type,omitempty"`
RootUser string `protobuf:"bytes,4,opt,name=root_user,json=rootUser,proto3" json:"root_user,omitempty"`
Size uint64 `protobuf:"varint,5,opt,name=size,proto3" json:"size,omitempty"` // optional expected file size for quota pre-check
// contains filtered or unexported fields
}
=== File Operations ===
func (*CreateFileRequest) Descriptor
deprecated
func (*CreateFileRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateFileRequest.ProtoReflect.Descriptor instead.
func (*CreateFileRequest) GetFid ¶
func (x *CreateFileRequest) GetFid() *FID
func (*CreateFileRequest) GetName ¶
func (x *CreateFileRequest) GetName() string
func (*CreateFileRequest) GetRootUser ¶
func (x *CreateFileRequest) GetRootUser() string
func (*CreateFileRequest) GetSize ¶
func (x *CreateFileRequest) GetSize() uint64
func (*CreateFileRequest) GetType ¶
func (x *CreateFileRequest) GetType() InodeType
func (*CreateFileRequest) ProtoMessage ¶
func (*CreateFileRequest) ProtoMessage()
func (*CreateFileRequest) ProtoReflect ¶
func (x *CreateFileRequest) ProtoReflect() protoreflect.Message
func (*CreateFileRequest) Reset ¶
func (x *CreateFileRequest) Reset()
func (*CreateFileRequest) String ¶
func (x *CreateFileRequest) String() string
type CreateFileResponse ¶
type CreateFileResponse struct {
Fid *FID `protobuf:"bytes,1,opt,name=fid,proto3" json:"fid,omitempty"`
Success bool `protobuf:"varint,2,opt,name=success,proto3" json:"success,omitempty"`
Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
// contains filtered or unexported fields
}
func (*CreateFileResponse) Descriptor
deprecated
func (*CreateFileResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateFileResponse.ProtoReflect.Descriptor instead.
func (*CreateFileResponse) GetError ¶
func (x *CreateFileResponse) GetError() string
func (*CreateFileResponse) GetFid ¶
func (x *CreateFileResponse) GetFid() *FID
func (*CreateFileResponse) GetSuccess ¶
func (x *CreateFileResponse) GetSuccess() bool
func (*CreateFileResponse) ProtoMessage ¶
func (*CreateFileResponse) ProtoMessage()
func (*CreateFileResponse) ProtoReflect ¶
func (x *CreateFileResponse) ProtoReflect() protoreflect.Message
func (*CreateFileResponse) Reset ¶
func (x *CreateFileResponse) Reset()
func (*CreateFileResponse) String ¶
func (x *CreateFileResponse) String() string
type DeleteFileRequest ¶
type DeleteFileRequest struct {
Fid *FID `protobuf:"bytes,1,opt,name=fid,proto3" json:"fid,omitempty"`
Recursive bool `protobuf:"varint,2,opt,name=recursive,proto3" json:"recursive,omitempty"` // if true, allows deletion of non-empty directories
RootUser string `protobuf:"bytes,3,opt,name=root_user,json=rootUser,proto3" json:"root_user,omitempty"`
// contains filtered or unexported fields
}
func (*DeleteFileRequest) Descriptor
deprecated
func (*DeleteFileRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteFileRequest.ProtoReflect.Descriptor instead.
func (*DeleteFileRequest) GetFid ¶
func (x *DeleteFileRequest) GetFid() *FID
func (*DeleteFileRequest) GetRecursive ¶
func (x *DeleteFileRequest) GetRecursive() bool
func (*DeleteFileRequest) GetRootUser ¶
func (x *DeleteFileRequest) GetRootUser() string
func (*DeleteFileRequest) ProtoMessage ¶
func (*DeleteFileRequest) ProtoMessage()
func (*DeleteFileRequest) ProtoReflect ¶
func (x *DeleteFileRequest) ProtoReflect() protoreflect.Message
func (*DeleteFileRequest) Reset ¶
func (x *DeleteFileRequest) Reset()
func (*DeleteFileRequest) String ¶
func (x *DeleteFileRequest) String() string
type DeleteFileResponse ¶
type DeleteFileResponse struct {
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
// contains filtered or unexported fields
}
func (*DeleteFileResponse) Descriptor
deprecated
func (*DeleteFileResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteFileResponse.ProtoReflect.Descriptor instead.
func (*DeleteFileResponse) GetError ¶
func (x *DeleteFileResponse) GetError() string
func (*DeleteFileResponse) GetSuccess ¶
func (x *DeleteFileResponse) GetSuccess() bool
func (*DeleteFileResponse) ProtoMessage ¶
func (*DeleteFileResponse) ProtoMessage()
func (*DeleteFileResponse) ProtoReflect ¶
func (x *DeleteFileResponse) ProtoReflect() protoreflect.Message
func (*DeleteFileResponse) Reset ¶
func (x *DeleteFileResponse) Reset()
func (*DeleteFileResponse) String ¶
func (x *DeleteFileResponse) String() string
type DirEntry ¶
type DirEntry struct {
Fid *FID `protobuf:"bytes,1,opt,name=fid,proto3" json:"fid,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Type InodeType `protobuf:"varint,3,opt,name=type,proto3,enum=fileserver.InodeType" json:"type,omitempty"`
Size uint64 `protobuf:"varint,4,opt,name=size,proto3" json:"size,omitempty"`
// contains filtered or unexported fields
}
func (*DirEntry) Descriptor
deprecated
func (*DirEntry) ProtoMessage ¶
func (*DirEntry) ProtoMessage()
func (*DirEntry) ProtoReflect ¶
func (x *DirEntry) ProtoReflect() protoreflect.Message
type DownloadFileRequest ¶
type DownloadFileRequest struct {
ParentFid *FID `protobuf:"bytes,1,opt,name=parentFid,proto3" json:"parentFid,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
func (*DownloadFileRequest) Descriptor
deprecated
func (*DownloadFileRequest) Descriptor() ([]byte, []int)
Deprecated: Use DownloadFileRequest.ProtoReflect.Descriptor instead.
func (*DownloadFileRequest) GetName ¶
func (x *DownloadFileRequest) GetName() string
func (*DownloadFileRequest) GetParentFid ¶
func (x *DownloadFileRequest) GetParentFid() *FID
func (*DownloadFileRequest) ProtoMessage ¶
func (*DownloadFileRequest) ProtoMessage()
func (*DownloadFileRequest) ProtoReflect ¶
func (x *DownloadFileRequest) ProtoReflect() protoreflect.Message
func (*DownloadFileRequest) Reset ¶
func (x *DownloadFileRequest) Reset()
func (*DownloadFileRequest) String ¶
func (x *DownloadFileRequest) String() string
type DownloadFileResponse ¶
type DownloadFileResponse struct {
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
Offset uint64 `protobuf:"varint,3,opt,name=offset,proto3" json:"offset,omitempty"`
Chunk []byte `protobuf:"bytes,4,opt,name=chunk,proto3" json:"chunk,omitempty"`
// contains filtered or unexported fields
}
func (*DownloadFileResponse) Descriptor
deprecated
func (*DownloadFileResponse) Descriptor() ([]byte, []int)
Deprecated: Use DownloadFileResponse.ProtoReflect.Descriptor instead.
func (*DownloadFileResponse) GetChunk ¶
func (x *DownloadFileResponse) GetChunk() []byte
func (*DownloadFileResponse) GetError ¶
func (x *DownloadFileResponse) GetError() string
func (*DownloadFileResponse) GetOffset ¶
func (x *DownloadFileResponse) GetOffset() uint64
func (*DownloadFileResponse) GetSuccess ¶
func (x *DownloadFileResponse) GetSuccess() bool
func (*DownloadFileResponse) ProtoMessage ¶
func (*DownloadFileResponse) ProtoMessage()
func (*DownloadFileResponse) ProtoReflect ¶
func (x *DownloadFileResponse) ProtoReflect() protoreflect.Message
func (*DownloadFileResponse) Reset ¶
func (x *DownloadFileResponse) Reset()
func (*DownloadFileResponse) String ¶
func (x *DownloadFileResponse) String() string
type FID ¶
type FID struct {
FileServerId string `protobuf:"bytes,1,opt,name=file_server_id,json=fileServerId,proto3" json:"file_server_id,omitempty"`
InodeId uint64 `protobuf:"varint,2,opt,name=inode_id,json=inodeId,proto3" json:"inode_id,omitempty"`
GenerationNumber uint64 `protobuf:"varint,3,opt,name=generation_number,json=generationNumber,proto3" json:"generation_number,omitempty"`
// contains filtered or unexported fields
}
File Identifier
func (*FID) Descriptor
deprecated
func (*FID) GetFileServerId ¶
func (*FID) GetGenerationNumber ¶
func (*FID) GetInodeId ¶
func (*FID) ProtoMessage ¶
func (*FID) ProtoMessage()
func (*FID) ProtoReflect ¶
func (x *FID) ProtoReflect() protoreflect.Message
type FileServerClient ¶
type FileServerClient interface {
RegisterClient(ctx context.Context, in *RegisterClientRequest, opts ...grpc.CallOption) (*RegisterClientResponse, error)
UnregisterClient(ctx context.Context, in *UnregisterClientRequest, opts ...grpc.CallOption) (*UnregisterClientResponse, error)
CreateFile(ctx context.Context, in *CreateFileRequest, opts ...grpc.CallOption) (*CreateFileResponse, error)
OpenFile(ctx context.Context, in *OpenFileRequest, opts ...grpc.CallOption) (*OpenFileResponse, error)
ReadFile(ctx context.Context, in *ReadFileRequest, opts ...grpc.CallOption) (*ReadFileResponse, error)
WriteFile(ctx context.Context, in *WriteFileRequest, opts ...grpc.CallOption) (*WriteFileResponse, error)
CloseFile(ctx context.Context, in *CloseFileRequest, opts ...grpc.CallOption) (*CloseFileResponse, error)
DeleteFile(ctx context.Context, in *DeleteFileRequest, opts ...grpc.CallOption) (*DeleteFileResponse, error)
TrashFile(ctx context.Context, in *TrashFileRequest, opts ...grpc.CallOption) (*TrashFileResponse, error)
RestoreFile(ctx context.Context, in *RestoreFileRequest, opts ...grpc.CallOption) (*RestoreFileResponse, error)
ShowTrash(ctx context.Context, in *ShowTrashRequest, opts ...grpc.CallOption) (*ShowTrashResponse, error)
GetAttr(ctx context.Context, in *GetAttrRequest, opts ...grpc.CallOption) (*GetAttrResponse, error)
ListDir(ctx context.Context, in *ListDirRequest, opts ...grpc.CallOption) (*ListDirResponse, error)
Lookup(ctx context.Context, in *LookupRequest, opts ...grpc.CallOption) (*LookupResponse, error)
Path(ctx context.Context, in *PathRequest, opts ...grpc.CallOption) (*PathResponse, error)
ChangeDir(ctx context.Context, in *ChangeDirRequest, opts ...grpc.CallOption) (*ChangeDirResponse, error)
UploadFile(ctx context.Context, opts ...grpc.CallOption) (grpc.ClientStreamingClient[UploadFileRequest, UploadFileResponse], error)
DownloadFile(ctx context.Context, in *DownloadFileRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[DownloadFileResponse], error)
SetQuota(ctx context.Context, in *SetQuotaRequest, opts ...grpc.CallOption) (*SetQuotaResponse, error)
}
FileServerClient is the client API for FileServer service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
FileServer service
func NewFileServerClient ¶
func NewFileServerClient(cc grpc.ClientConnInterface) FileServerClient
type FileServerServer ¶
type FileServerServer interface {
RegisterClient(context.Context, *RegisterClientRequest) (*RegisterClientResponse, error)
UnregisterClient(context.Context, *UnregisterClientRequest) (*UnregisterClientResponse, error)
CreateFile(context.Context, *CreateFileRequest) (*CreateFileResponse, error)
OpenFile(context.Context, *OpenFileRequest) (*OpenFileResponse, error)
ReadFile(context.Context, *ReadFileRequest) (*ReadFileResponse, error)
WriteFile(context.Context, *WriteFileRequest) (*WriteFileResponse, error)
CloseFile(context.Context, *CloseFileRequest) (*CloseFileResponse, error)
DeleteFile(context.Context, *DeleteFileRequest) (*DeleteFileResponse, error)
TrashFile(context.Context, *TrashFileRequest) (*TrashFileResponse, error)
RestoreFile(context.Context, *RestoreFileRequest) (*RestoreFileResponse, error)
ShowTrash(context.Context, *ShowTrashRequest) (*ShowTrashResponse, error)
GetAttr(context.Context, *GetAttrRequest) (*GetAttrResponse, error)
ListDir(context.Context, *ListDirRequest) (*ListDirResponse, error)
Lookup(context.Context, *LookupRequest) (*LookupResponse, error)
Path(context.Context, *PathRequest) (*PathResponse, error)
ChangeDir(context.Context, *ChangeDirRequest) (*ChangeDirResponse, error)
UploadFile(grpc.ClientStreamingServer[UploadFileRequest, UploadFileResponse]) error
DownloadFile(*DownloadFileRequest, grpc.ServerStreamingServer[DownloadFileResponse]) error
SetQuota(context.Context, *SetQuotaRequest) (*SetQuotaResponse, error)
// contains filtered or unexported methods
}
FileServerServer is the server API for FileServer service. All implementations must embed UnimplementedFileServerServer for forward compatibility.
FileServer service
type FileServer_DownloadFileClient ¶
type FileServer_DownloadFileClient = grpc.ServerStreamingClient[DownloadFileResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type FileServer_DownloadFileServer ¶
type FileServer_DownloadFileServer = grpc.ServerStreamingServer[DownloadFileResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type FileServer_UploadFileClient ¶
type FileServer_UploadFileClient = grpc.ClientStreamingClient[UploadFileRequest, UploadFileResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type FileServer_UploadFileServer ¶
type FileServer_UploadFileServer = grpc.ClientStreamingServer[UploadFileRequest, UploadFileResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type GetAttrRequest ¶
type GetAttrRequest struct {
Fid *FID `protobuf:"bytes,1,opt,name=fid,proto3" json:"fid,omitempty"`
// contains filtered or unexported fields
}
func (*GetAttrRequest) Descriptor
deprecated
func (*GetAttrRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAttrRequest.ProtoReflect.Descriptor instead.
func (*GetAttrRequest) GetFid ¶
func (x *GetAttrRequest) GetFid() *FID
func (*GetAttrRequest) ProtoMessage ¶
func (*GetAttrRequest) ProtoMessage()
func (*GetAttrRequest) ProtoReflect ¶
func (x *GetAttrRequest) ProtoReflect() protoreflect.Message
func (*GetAttrRequest) Reset ¶
func (x *GetAttrRequest) Reset()
func (*GetAttrRequest) String ¶
func (x *GetAttrRequest) String() string
type GetAttrResponse ¶
type GetAttrResponse struct {
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
Type InodeType `protobuf:"varint,4,opt,name=type,proto3,enum=fileserver.InodeType" json:"type,omitempty"`
Size uint64 `protobuf:"varint,5,opt,name=size,proto3" json:"size,omitempty"`
Version uint64 `protobuf:"varint,6,opt,name=version,proto3" json:"version,omitempty"`
// contains filtered or unexported fields
}
func (*GetAttrResponse) Descriptor
deprecated
func (*GetAttrResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetAttrResponse.ProtoReflect.Descriptor instead.
func (*GetAttrResponse) GetError ¶
func (x *GetAttrResponse) GetError() string
func (*GetAttrResponse) GetName ¶
func (x *GetAttrResponse) GetName() string
func (*GetAttrResponse) GetSize ¶
func (x *GetAttrResponse) GetSize() uint64
func (*GetAttrResponse) GetSuccess ¶
func (x *GetAttrResponse) GetSuccess() bool
func (*GetAttrResponse) GetType ¶
func (x *GetAttrResponse) GetType() InodeType
func (*GetAttrResponse) GetVersion ¶
func (x *GetAttrResponse) GetVersion() uint64
func (*GetAttrResponse) ProtoMessage ¶
func (*GetAttrResponse) ProtoMessage()
func (*GetAttrResponse) ProtoReflect ¶
func (x *GetAttrResponse) ProtoReflect() protoreflect.Message
func (*GetAttrResponse) Reset ¶
func (x *GetAttrResponse) Reset()
func (*GetAttrResponse) String ¶
func (x *GetAttrResponse) String() string
type InodeType ¶
type InodeType int32
File/Directory Type
func (InodeType) Descriptor ¶
func (InodeType) Descriptor() protoreflect.EnumDescriptor
func (InodeType) EnumDescriptor
deprecated
func (InodeType) Number ¶
func (x InodeType) Number() protoreflect.EnumNumber
func (InodeType) Type ¶
func (InodeType) Type() protoreflect.EnumType
type ListDirRequest ¶
type ListDirRequest struct {
Fid *FID `protobuf:"bytes,1,opt,name=fid,proto3" json:"fid,omitempty"`
// contains filtered or unexported fields
}
func (*ListDirRequest) Descriptor
deprecated
func (*ListDirRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListDirRequest.ProtoReflect.Descriptor instead.
func (*ListDirRequest) GetFid ¶
func (x *ListDirRequest) GetFid() *FID
func (*ListDirRequest) ProtoMessage ¶
func (*ListDirRequest) ProtoMessage()
func (*ListDirRequest) ProtoReflect ¶
func (x *ListDirRequest) ProtoReflect() protoreflect.Message
func (*ListDirRequest) Reset ¶
func (x *ListDirRequest) Reset()
func (*ListDirRequest) String ¶
func (x *ListDirRequest) String() string
type ListDirResponse ¶
type ListDirResponse struct {
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
Entries []*DirEntry `protobuf:"bytes,3,rep,name=entries,proto3" json:"entries,omitempty"`
// contains filtered or unexported fields
}
func (*ListDirResponse) Descriptor
deprecated
func (*ListDirResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListDirResponse.ProtoReflect.Descriptor instead.
func (*ListDirResponse) GetEntries ¶
func (x *ListDirResponse) GetEntries() []*DirEntry
func (*ListDirResponse) GetError ¶
func (x *ListDirResponse) GetError() string
func (*ListDirResponse) GetSuccess ¶
func (x *ListDirResponse) GetSuccess() bool
func (*ListDirResponse) ProtoMessage ¶
func (*ListDirResponse) ProtoMessage()
func (*ListDirResponse) ProtoReflect ¶
func (x *ListDirResponse) ProtoReflect() protoreflect.Message
func (*ListDirResponse) Reset ¶
func (x *ListDirResponse) Reset()
func (*ListDirResponse) String ¶
func (x *ListDirResponse) String() string
type LookupRequest ¶
type LookupRequest struct {
ParentFid *FID `protobuf:"bytes,1,opt,name=parent_fid,json=parentFid,proto3" json:"parent_fid,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
func (*LookupRequest) Descriptor
deprecated
func (*LookupRequest) Descriptor() ([]byte, []int)
Deprecated: Use LookupRequest.ProtoReflect.Descriptor instead.
func (*LookupRequest) GetName ¶
func (x *LookupRequest) GetName() string
func (*LookupRequest) GetParentFid ¶
func (x *LookupRequest) GetParentFid() *FID
func (*LookupRequest) ProtoMessage ¶
func (*LookupRequest) ProtoMessage()
func (*LookupRequest) ProtoReflect ¶
func (x *LookupRequest) ProtoReflect() protoreflect.Message
func (*LookupRequest) Reset ¶
func (x *LookupRequest) Reset()
func (*LookupRequest) String ¶
func (x *LookupRequest) String() string
type LookupResponse ¶
type LookupResponse struct {
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
Fid *FID `protobuf:"bytes,3,opt,name=fid,proto3" json:"fid,omitempty"`
// contains filtered or unexported fields
}
func (*LookupResponse) Descriptor
deprecated
func (*LookupResponse) Descriptor() ([]byte, []int)
Deprecated: Use LookupResponse.ProtoReflect.Descriptor instead.
func (*LookupResponse) GetError ¶
func (x *LookupResponse) GetError() string
func (*LookupResponse) GetFid ¶
func (x *LookupResponse) GetFid() *FID
func (*LookupResponse) GetSuccess ¶
func (x *LookupResponse) GetSuccess() bool
func (*LookupResponse) ProtoMessage ¶
func (*LookupResponse) ProtoMessage()
func (*LookupResponse) ProtoReflect ¶
func (x *LookupResponse) ProtoReflect() protoreflect.Message
func (*LookupResponse) Reset ¶
func (x *LookupResponse) Reset()
func (*LookupResponse) String ¶
func (x *LookupResponse) String() string
type OpenFileRequest ¶
type OpenFileRequest struct {
Fid *FID `protobuf:"bytes,1,opt,name=fid,proto3" json:"fid,omitempty"`
ClientId string `protobuf:"bytes,2,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` // for callbacks
// contains filtered or unexported fields
}
func (*OpenFileRequest) Descriptor
deprecated
func (*OpenFileRequest) Descriptor() ([]byte, []int)
Deprecated: Use OpenFileRequest.ProtoReflect.Descriptor instead.
func (*OpenFileRequest) GetClientId ¶
func (x *OpenFileRequest) GetClientId() string
func (*OpenFileRequest) GetFid ¶
func (x *OpenFileRequest) GetFid() *FID
func (*OpenFileRequest) ProtoMessage ¶
func (*OpenFileRequest) ProtoMessage()
func (*OpenFileRequest) ProtoReflect ¶
func (x *OpenFileRequest) ProtoReflect() protoreflect.Message
func (*OpenFileRequest) Reset ¶
func (x *OpenFileRequest) Reset()
func (*OpenFileRequest) String ¶
func (x *OpenFileRequest) String() string
type OpenFileResponse ¶
type OpenFileResponse struct {
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
FileSize uint64 `protobuf:"varint,3,opt,name=file_size,json=fileSize,proto3" json:"file_size,omitempty"`
Version uint64 `protobuf:"varint,4,opt,name=version,proto3" json:"version,omitempty"` // for cache validation
// contains filtered or unexported fields
}
func (*OpenFileResponse) Descriptor
deprecated
func (*OpenFileResponse) Descriptor() ([]byte, []int)
Deprecated: Use OpenFileResponse.ProtoReflect.Descriptor instead.
func (*OpenFileResponse) GetError ¶
func (x *OpenFileResponse) GetError() string
func (*OpenFileResponse) GetFileSize ¶
func (x *OpenFileResponse) GetFileSize() uint64
func (*OpenFileResponse) GetSuccess ¶
func (x *OpenFileResponse) GetSuccess() bool
func (*OpenFileResponse) GetVersion ¶
func (x *OpenFileResponse) GetVersion() uint64
func (*OpenFileResponse) ProtoMessage ¶
func (*OpenFileResponse) ProtoMessage()
func (*OpenFileResponse) ProtoReflect ¶
func (x *OpenFileResponse) ProtoReflect() protoreflect.Message
func (*OpenFileResponse) Reset ¶
func (x *OpenFileResponse) Reset()
func (*OpenFileResponse) String ¶
func (x *OpenFileResponse) String() string
type PathRequest ¶
type PathRequest struct {
Fid *FID `protobuf:"bytes,1,opt,name=fid,proto3" json:"fid,omitempty"`
RootUser string `protobuf:"bytes,2,opt,name=root_user,json=rootUser,proto3" json:"root_user,omitempty"`
DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// contains filtered or unexported fields
}
func (*PathRequest) Descriptor
deprecated
func (*PathRequest) Descriptor() ([]byte, []int)
Deprecated: Use PathRequest.ProtoReflect.Descriptor instead.
func (*PathRequest) GetDisplayName ¶
func (x *PathRequest) GetDisplayName() string
func (*PathRequest) GetFid ¶
func (x *PathRequest) GetFid() *FID
func (*PathRequest) GetRootUser ¶
func (x *PathRequest) GetRootUser() string
func (*PathRequest) ProtoMessage ¶
func (*PathRequest) ProtoMessage()
func (*PathRequest) ProtoReflect ¶
func (x *PathRequest) ProtoReflect() protoreflect.Message
func (*PathRequest) Reset ¶
func (x *PathRequest) Reset()
func (*PathRequest) String ¶
func (x *PathRequest) String() string
type PathResponse ¶
type PathResponse struct {
Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
Success bool `protobuf:"varint,2,opt,name=success,proto3" json:"success,omitempty"`
Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
// contains filtered or unexported fields
}
func (*PathResponse) Descriptor
deprecated
func (*PathResponse) Descriptor() ([]byte, []int)
Deprecated: Use PathResponse.ProtoReflect.Descriptor instead.
func (*PathResponse) GetError ¶
func (x *PathResponse) GetError() string
func (*PathResponse) GetPath ¶
func (x *PathResponse) GetPath() string
func (*PathResponse) GetSuccess ¶
func (x *PathResponse) GetSuccess() bool
func (*PathResponse) ProtoMessage ¶
func (*PathResponse) ProtoMessage()
func (*PathResponse) ProtoReflect ¶
func (x *PathResponse) ProtoReflect() protoreflect.Message
func (*PathResponse) Reset ¶
func (x *PathResponse) Reset()
func (*PathResponse) String ¶
func (x *PathResponse) String() string
type ReadFileRequest ¶
type ReadFileRequest struct {
ParentFid *FID `protobuf:"bytes,1,opt,name=parentFid,proto3" json:"parentFid,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Offset uint64 `protobuf:"varint,3,opt,name=offset,proto3" json:"offset,omitempty"`
Length uint64 `protobuf:"varint,4,opt,name=length,proto3" json:"length,omitempty"`
// contains filtered or unexported fields
}
func (*ReadFileRequest) Descriptor
deprecated
func (*ReadFileRequest) Descriptor() ([]byte, []int)
Deprecated: Use ReadFileRequest.ProtoReflect.Descriptor instead.
func (*ReadFileRequest) GetLength ¶
func (x *ReadFileRequest) GetLength() uint64
func (*ReadFileRequest) GetName ¶
func (x *ReadFileRequest) GetName() string
func (*ReadFileRequest) GetOffset ¶
func (x *ReadFileRequest) GetOffset() uint64
func (*ReadFileRequest) GetParentFid ¶
func (x *ReadFileRequest) GetParentFid() *FID
func (*ReadFileRequest) ProtoMessage ¶
func (*ReadFileRequest) ProtoMessage()
func (*ReadFileRequest) ProtoReflect ¶
func (x *ReadFileRequest) ProtoReflect() protoreflect.Message
func (*ReadFileRequest) Reset ¶
func (x *ReadFileRequest) Reset()
func (*ReadFileRequest) String ¶
func (x *ReadFileRequest) String() string
type ReadFileResponse ¶
type ReadFileResponse struct {
Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
Success bool `protobuf:"varint,2,opt,name=success,proto3" json:"success,omitempty"`
Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
// contains filtered or unexported fields
}
func (*ReadFileResponse) Descriptor
deprecated
func (*ReadFileResponse) Descriptor() ([]byte, []int)
Deprecated: Use ReadFileResponse.ProtoReflect.Descriptor instead.
func (*ReadFileResponse) GetData ¶
func (x *ReadFileResponse) GetData() []byte
func (*ReadFileResponse) GetError ¶
func (x *ReadFileResponse) GetError() string
func (*ReadFileResponse) GetSuccess ¶
func (x *ReadFileResponse) GetSuccess() bool
func (*ReadFileResponse) ProtoMessage ¶
func (*ReadFileResponse) ProtoMessage()
func (*ReadFileResponse) ProtoReflect ¶
func (x *ReadFileResponse) ProtoReflect() protoreflect.Message
func (*ReadFileResponse) Reset ¶
func (x *ReadFileResponse) Reset()
func (*ReadFileResponse) String ¶
func (x *ReadFileResponse) String() string
type RegisterClientRequest ¶
type RegisterClientRequest struct {
ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
CallbackAddress string `protobuf:"bytes,2,opt,name=callback_address,json=callbackAddress,proto3" json:"callback_address,omitempty"` // host:port for callbacks
Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"` // username for access control
RootUser string `protobuf:"bytes,4,opt,name=root_user,json=rootUser,proto3" json:"root_user,omitempty"` // root user
RootPath string `protobuf:"bytes,5,opt,name=root_path,json=rootPath,proto3" json:"root_path,omitempty"` // path of the root
// contains filtered or unexported fields
}
func (*RegisterClientRequest) Descriptor
deprecated
func (*RegisterClientRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegisterClientRequest.ProtoReflect.Descriptor instead.
func (*RegisterClientRequest) GetCallbackAddress ¶
func (x *RegisterClientRequest) GetCallbackAddress() string
func (*RegisterClientRequest) GetClientId ¶
func (x *RegisterClientRequest) GetClientId() string
func (*RegisterClientRequest) GetRootPath ¶
func (x *RegisterClientRequest) GetRootPath() string
func (*RegisterClientRequest) GetRootUser ¶
func (x *RegisterClientRequest) GetRootUser() string
func (*RegisterClientRequest) GetUsername ¶
func (x *RegisterClientRequest) GetUsername() string
func (*RegisterClientRequest) ProtoMessage ¶
func (*RegisterClientRequest) ProtoMessage()
func (*RegisterClientRequest) ProtoReflect ¶
func (x *RegisterClientRequest) ProtoReflect() protoreflect.Message
func (*RegisterClientRequest) Reset ¶
func (x *RegisterClientRequest) Reset()
func (*RegisterClientRequest) String ¶
func (x *RegisterClientRequest) String() string
type RegisterClientResponse ¶
type RegisterClientResponse struct {
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
UserRootFid *FID `protobuf:"bytes,3,opt,name=user_root_fid,json=userRootFid,proto3" json:"user_root_fid,omitempty"` // FID of user's root directory
// contains filtered or unexported fields
}
func (*RegisterClientResponse) Descriptor
deprecated
func (*RegisterClientResponse) Descriptor() ([]byte, []int)
Deprecated: Use RegisterClientResponse.ProtoReflect.Descriptor instead.
func (*RegisterClientResponse) GetError ¶
func (x *RegisterClientResponse) GetError() string
func (*RegisterClientResponse) GetSuccess ¶
func (x *RegisterClientResponse) GetSuccess() bool
func (*RegisterClientResponse) GetUserRootFid ¶
func (x *RegisterClientResponse) GetUserRootFid() *FID
func (*RegisterClientResponse) ProtoMessage ¶
func (*RegisterClientResponse) ProtoMessage()
func (*RegisterClientResponse) ProtoReflect ¶
func (x *RegisterClientResponse) ProtoReflect() protoreflect.Message
func (*RegisterClientResponse) Reset ¶
func (x *RegisterClientResponse) Reset()
func (*RegisterClientResponse) String ¶
func (x *RegisterClientResponse) String() string
type RestoreFileRequest ¶
type RestoreFileRequest struct {
Fid *FID `protobuf:"bytes,1,opt,name=fid,proto3" json:"fid,omitempty"`
RootUser string `protobuf:"bytes,2,opt,name=root_user,json=rootUser,proto3" json:"root_user,omitempty"`
Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"` // requester identity for ACL checks
// contains filtered or unexported fields
}
Restore a file/directory from trash back to its original location
func (*RestoreFileRequest) Descriptor
deprecated
func (*RestoreFileRequest) Descriptor() ([]byte, []int)
Deprecated: Use RestoreFileRequest.ProtoReflect.Descriptor instead.
func (*RestoreFileRequest) GetFid ¶
func (x *RestoreFileRequest) GetFid() *FID
func (*RestoreFileRequest) GetRootUser ¶
func (x *RestoreFileRequest) GetRootUser() string
func (*RestoreFileRequest) GetUsername ¶
func (x *RestoreFileRequest) GetUsername() string
func (*RestoreFileRequest) ProtoMessage ¶
func (*RestoreFileRequest) ProtoMessage()
func (*RestoreFileRequest) ProtoReflect ¶
func (x *RestoreFileRequest) ProtoReflect() protoreflect.Message
func (*RestoreFileRequest) Reset ¶
func (x *RestoreFileRequest) Reset()
func (*RestoreFileRequest) String ¶
func (x *RestoreFileRequest) String() string
type RestoreFileResponse ¶
type RestoreFileResponse struct {
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
RestoredName string `protobuf:"bytes,3,opt,name=restored_name,json=restoredName,proto3" json:"restored_name,omitempty"` // final restored name (may differ on collision)
// contains filtered or unexported fields
}
func (*RestoreFileResponse) Descriptor
deprecated
func (*RestoreFileResponse) Descriptor() ([]byte, []int)
Deprecated: Use RestoreFileResponse.ProtoReflect.Descriptor instead.
func (*RestoreFileResponse) GetError ¶
func (x *RestoreFileResponse) GetError() string
func (*RestoreFileResponse) GetRestoredName ¶
func (x *RestoreFileResponse) GetRestoredName() string
func (*RestoreFileResponse) GetSuccess ¶
func (x *RestoreFileResponse) GetSuccess() bool
func (*RestoreFileResponse) ProtoMessage ¶
func (*RestoreFileResponse) ProtoMessage()
func (*RestoreFileResponse) ProtoReflect ¶
func (x *RestoreFileResponse) ProtoReflect() protoreflect.Message
func (*RestoreFileResponse) Reset ¶
func (x *RestoreFileResponse) Reset()
func (*RestoreFileResponse) String ¶
func (x *RestoreFileResponse) String() string
type SetQuotaRequest ¶
type SetQuotaRequest struct {
Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
QuotaBytes uint64 `protobuf:"varint,2,opt,name=quota_bytes,json=quotaBytes,proto3" json:"quota_bytes,omitempty"`
// contains filtered or unexported fields
}
func (*SetQuotaRequest) Descriptor
deprecated
func (*SetQuotaRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetQuotaRequest.ProtoReflect.Descriptor instead.
func (*SetQuotaRequest) GetQuotaBytes ¶
func (x *SetQuotaRequest) GetQuotaBytes() uint64
func (*SetQuotaRequest) GetUsername ¶
func (x *SetQuotaRequest) GetUsername() string
func (*SetQuotaRequest) ProtoMessage ¶
func (*SetQuotaRequest) ProtoMessage()
func (*SetQuotaRequest) ProtoReflect ¶
func (x *SetQuotaRequest) ProtoReflect() protoreflect.Message
func (*SetQuotaRequest) Reset ¶
func (x *SetQuotaRequest) Reset()
func (*SetQuotaRequest) String ¶
func (x *SetQuotaRequest) String() string
type SetQuotaResponse ¶
type SetQuotaResponse struct {
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
// contains filtered or unexported fields
}
func (*SetQuotaResponse) Descriptor
deprecated
func (*SetQuotaResponse) Descriptor() ([]byte, []int)
Deprecated: Use SetQuotaResponse.ProtoReflect.Descriptor instead.
func (*SetQuotaResponse) GetError ¶
func (x *SetQuotaResponse) GetError() string
func (*SetQuotaResponse) GetSuccess ¶
func (x *SetQuotaResponse) GetSuccess() bool
func (*SetQuotaResponse) ProtoMessage ¶
func (*SetQuotaResponse) ProtoMessage()
func (*SetQuotaResponse) ProtoReflect ¶
func (x *SetQuotaResponse) ProtoReflect() protoreflect.Message
func (*SetQuotaResponse) Reset ¶
func (x *SetQuotaResponse) Reset()
func (*SetQuotaResponse) String ¶
func (x *SetQuotaResponse) String() string
type ShareRequest ¶
type ShareRequest struct {
// contains filtered or unexported fields
}
func (*ShareRequest) Descriptor
deprecated
func (*ShareRequest) Descriptor() ([]byte, []int)
Deprecated: Use ShareRequest.ProtoReflect.Descriptor instead.
func (*ShareRequest) GetFid ¶
func (x *ShareRequest) GetFid() *FID
func (*ShareRequest) GetShareWith ¶
func (x *ShareRequest) GetShareWith() string
func (*ShareRequest) GetUsername ¶
func (x *ShareRequest) GetUsername() string
func (*ShareRequest) ProtoMessage ¶
func (*ShareRequest) ProtoMessage()
func (*ShareRequest) ProtoReflect ¶
func (x *ShareRequest) ProtoReflect() protoreflect.Message
func (*ShareRequest) Reset ¶
func (x *ShareRequest) Reset()
func (*ShareRequest) String ¶
func (x *ShareRequest) String() string
type ShareResponse ¶
type ShareResponse struct {
// contains filtered or unexported fields
}
func (*ShareResponse) Descriptor
deprecated
func (*ShareResponse) Descriptor() ([]byte, []int)
Deprecated: Use ShareResponse.ProtoReflect.Descriptor instead.
func (*ShareResponse) GetError ¶
func (x *ShareResponse) GetError() string
func (*ShareResponse) GetSuccess ¶
func (x *ShareResponse) GetSuccess() bool
func (*ShareResponse) ProtoMessage ¶
func (*ShareResponse) ProtoMessage()
func (*ShareResponse) ProtoReflect ¶
func (x *ShareResponse) ProtoReflect() protoreflect.Message
func (*ShareResponse) Reset ¶
func (x *ShareResponse) Reset()
func (*ShareResponse) String ¶
func (x *ShareResponse) String() string
type ShowTrashRequest ¶
type ShowTrashRequest struct {
RootUser string `protobuf:"bytes,1,opt,name=root_user,json=rootUser,proto3" json:"root_user,omitempty"`
Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` // requester identity for ACL-filtered listing
// contains filtered or unexported fields
}
func (*ShowTrashRequest) Descriptor
deprecated
func (*ShowTrashRequest) Descriptor() ([]byte, []int)
Deprecated: Use ShowTrashRequest.ProtoReflect.Descriptor instead.
func (*ShowTrashRequest) GetRootUser ¶
func (x *ShowTrashRequest) GetRootUser() string
func (*ShowTrashRequest) GetUsername ¶
func (x *ShowTrashRequest) GetUsername() string
func (*ShowTrashRequest) ProtoMessage ¶
func (*ShowTrashRequest) ProtoMessage()
func (*ShowTrashRequest) ProtoReflect ¶
func (x *ShowTrashRequest) ProtoReflect() protoreflect.Message
func (*ShowTrashRequest) Reset ¶
func (x *ShowTrashRequest) Reset()
func (*ShowTrashRequest) String ¶
func (x *ShowTrashRequest) String() string
type ShowTrashResponse ¶
type ShowTrashResponse struct {
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
Entries []*DirEntry `protobuf:"bytes,3,rep,name=entries,proto3" json:"entries,omitempty"`
// contains filtered or unexported fields
}
func (*ShowTrashResponse) Descriptor
deprecated
func (*ShowTrashResponse) Descriptor() ([]byte, []int)
Deprecated: Use ShowTrashResponse.ProtoReflect.Descriptor instead.
func (*ShowTrashResponse) GetEntries ¶
func (x *ShowTrashResponse) GetEntries() []*DirEntry
func (*ShowTrashResponse) GetError ¶
func (x *ShowTrashResponse) GetError() string
func (*ShowTrashResponse) GetSuccess ¶
func (x *ShowTrashResponse) GetSuccess() bool
func (*ShowTrashResponse) ProtoMessage ¶
func (*ShowTrashResponse) ProtoMessage()
func (*ShowTrashResponse) ProtoReflect ¶
func (x *ShowTrashResponse) ProtoReflect() protoreflect.Message
func (*ShowTrashResponse) Reset ¶
func (x *ShowTrashResponse) Reset()
func (*ShowTrashResponse) String ¶
func (x *ShowTrashResponse) String() string
type TrashFileRequest ¶
type TrashFileRequest struct {
Fid *FID `protobuf:"bytes,1,opt,name=fid,proto3" json:"fid,omitempty"`
Recursive bool `protobuf:"varint,2,opt,name=recursive,proto3" json:"recursive,omitempty"` // if true, allows trashing non-empty directories
RootUser string `protobuf:"bytes,3,opt,name=root_user,json=rootUser,proto3" json:"root_user,omitempty"`
// contains filtered or unexported fields
}
Move a file/directory to the user's trash (soft delete)
func (*TrashFileRequest) Descriptor
deprecated
func (*TrashFileRequest) Descriptor() ([]byte, []int)
Deprecated: Use TrashFileRequest.ProtoReflect.Descriptor instead.
func (*TrashFileRequest) GetFid ¶
func (x *TrashFileRequest) GetFid() *FID
func (*TrashFileRequest) GetRecursive ¶
func (x *TrashFileRequest) GetRecursive() bool
func (*TrashFileRequest) GetRootUser ¶
func (x *TrashFileRequest) GetRootUser() string
func (*TrashFileRequest) ProtoMessage ¶
func (*TrashFileRequest) ProtoMessage()
func (*TrashFileRequest) ProtoReflect ¶
func (x *TrashFileRequest) ProtoReflect() protoreflect.Message
func (*TrashFileRequest) Reset ¶
func (x *TrashFileRequest) Reset()
func (*TrashFileRequest) String ¶
func (x *TrashFileRequest) String() string
type TrashFileResponse ¶
type TrashFileResponse struct {
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
TrashedName string `protobuf:"bytes,3,opt,name=trashed_name,json=trashedName,proto3" json:"trashed_name,omitempty"` // final name inside trash (may differ on collision)
// contains filtered or unexported fields
}
func (*TrashFileResponse) Descriptor
deprecated
func (*TrashFileResponse) Descriptor() ([]byte, []int)
Deprecated: Use TrashFileResponse.ProtoReflect.Descriptor instead.
func (*TrashFileResponse) GetError ¶
func (x *TrashFileResponse) GetError() string
func (*TrashFileResponse) GetSuccess ¶
func (x *TrashFileResponse) GetSuccess() bool
func (*TrashFileResponse) GetTrashedName ¶
func (x *TrashFileResponse) GetTrashedName() string
func (*TrashFileResponse) ProtoMessage ¶
func (*TrashFileResponse) ProtoMessage()
func (*TrashFileResponse) ProtoReflect ¶
func (x *TrashFileResponse) ProtoReflect() protoreflect.Message
func (*TrashFileResponse) Reset ¶
func (x *TrashFileResponse) Reset()
func (*TrashFileResponse) String ¶
func (x *TrashFileResponse) String() string
type UnimplementedFileServerServer ¶
type UnimplementedFileServerServer struct{}
UnimplementedFileServerServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedFileServerServer) ChangeDir ¶
func (UnimplementedFileServerServer) ChangeDir(context.Context, *ChangeDirRequest) (*ChangeDirResponse, error)
func (UnimplementedFileServerServer) CloseFile ¶
func (UnimplementedFileServerServer) CloseFile(context.Context, *CloseFileRequest) (*CloseFileResponse, error)
func (UnimplementedFileServerServer) CreateFile ¶
func (UnimplementedFileServerServer) CreateFile(context.Context, *CreateFileRequest) (*CreateFileResponse, error)
func (UnimplementedFileServerServer) DeleteFile ¶
func (UnimplementedFileServerServer) DeleteFile(context.Context, *DeleteFileRequest) (*DeleteFileResponse, error)
func (UnimplementedFileServerServer) DownloadFile ¶
func (UnimplementedFileServerServer) DownloadFile(*DownloadFileRequest, grpc.ServerStreamingServer[DownloadFileResponse]) error
func (UnimplementedFileServerServer) GetAttr ¶
func (UnimplementedFileServerServer) GetAttr(context.Context, *GetAttrRequest) (*GetAttrResponse, error)
func (UnimplementedFileServerServer) ListDir ¶
func (UnimplementedFileServerServer) ListDir(context.Context, *ListDirRequest) (*ListDirResponse, error)
func (UnimplementedFileServerServer) Lookup ¶
func (UnimplementedFileServerServer) Lookup(context.Context, *LookupRequest) (*LookupResponse, error)
func (UnimplementedFileServerServer) OpenFile ¶
func (UnimplementedFileServerServer) OpenFile(context.Context, *OpenFileRequest) (*OpenFileResponse, error)
func (UnimplementedFileServerServer) Path ¶
func (UnimplementedFileServerServer) Path(context.Context, *PathRequest) (*PathResponse, error)
func (UnimplementedFileServerServer) ReadFile ¶
func (UnimplementedFileServerServer) ReadFile(context.Context, *ReadFileRequest) (*ReadFileResponse, error)
func (UnimplementedFileServerServer) RegisterClient ¶
func (UnimplementedFileServerServer) RegisterClient(context.Context, *RegisterClientRequest) (*RegisterClientResponse, error)
func (UnimplementedFileServerServer) RestoreFile ¶
func (UnimplementedFileServerServer) RestoreFile(context.Context, *RestoreFileRequest) (*RestoreFileResponse, error)
func (UnimplementedFileServerServer) SetQuota ¶
func (UnimplementedFileServerServer) SetQuota(context.Context, *SetQuotaRequest) (*SetQuotaResponse, error)
func (UnimplementedFileServerServer) Share ¶
func (UnimplementedFileServerServer) Share(context.Context, *ShareRequest) (*ShareResponse, error)
func (UnimplementedFileServerServer) ShowTrash ¶
func (UnimplementedFileServerServer) ShowTrash(context.Context, *ShowTrashRequest) (*ShowTrashResponse, error)
func (UnimplementedFileServerServer) TrashFile ¶
func (UnimplementedFileServerServer) TrashFile(context.Context, *TrashFileRequest) (*TrashFileResponse, error)
func (UnimplementedFileServerServer) UnregisterClient ¶
func (UnimplementedFileServerServer) UnregisterClient(context.Context, *UnregisterClientRequest) (*UnregisterClientResponse, error)
func (UnimplementedFileServerServer) Unshare ¶
func (UnimplementedFileServerServer) Unshare(context.Context, *UnshareRequest) (*UnshareResponse, error)
func (UnimplementedFileServerServer) UploadFile ¶
func (UnimplementedFileServerServer) UploadFile(grpc.ClientStreamingServer[UploadFileRequest, UploadFileResponse]) error
func (UnimplementedFileServerServer) WriteFile ¶
func (UnimplementedFileServerServer) WriteFile(context.Context, *WriteFileRequest) (*WriteFileResponse, error)
type UnregisterClientRequest ¶
type UnregisterClientRequest struct {
ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
// contains filtered or unexported fields
}
func (*UnregisterClientRequest) Descriptor
deprecated
func (*UnregisterClientRequest) Descriptor() ([]byte, []int)
Deprecated: Use UnregisterClientRequest.ProtoReflect.Descriptor instead.
func (*UnregisterClientRequest) GetClientId ¶
func (x *UnregisterClientRequest) GetClientId() string
func (*UnregisterClientRequest) GetUsername ¶
func (x *UnregisterClientRequest) GetUsername() string
func (*UnregisterClientRequest) ProtoMessage ¶
func (*UnregisterClientRequest) ProtoMessage()
func (*UnregisterClientRequest) ProtoReflect ¶
func (x *UnregisterClientRequest) ProtoReflect() protoreflect.Message
func (*UnregisterClientRequest) Reset ¶
func (x *UnregisterClientRequest) Reset()
func (*UnregisterClientRequest) String ¶
func (x *UnregisterClientRequest) String() string
type UnregisterClientResponse ¶
type UnregisterClientResponse struct {
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
// contains filtered or unexported fields
}
func (*UnregisterClientResponse) Descriptor
deprecated
func (*UnregisterClientResponse) Descriptor() ([]byte, []int)
Deprecated: Use UnregisterClientResponse.ProtoReflect.Descriptor instead.
func (*UnregisterClientResponse) GetError ¶
func (x *UnregisterClientResponse) GetError() string
func (*UnregisterClientResponse) GetSuccess ¶
func (x *UnregisterClientResponse) GetSuccess() bool
func (*UnregisterClientResponse) ProtoMessage ¶
func (*UnregisterClientResponse) ProtoMessage()
func (*UnregisterClientResponse) ProtoReflect ¶
func (x *UnregisterClientResponse) ProtoReflect() protoreflect.Message
func (*UnregisterClientResponse) Reset ¶
func (x *UnregisterClientResponse) Reset()
func (*UnregisterClientResponse) String ¶
func (x *UnregisterClientResponse) String() string
type UnsafeFileServerServer ¶
type UnsafeFileServerServer interface {
// contains filtered or unexported methods
}
UnsafeFileServerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to FileServerServer will result in compilation errors.
type UnshareRequest ¶
type UnshareRequest struct {
// contains filtered or unexported fields
}
func (*UnshareRequest) Descriptor
deprecated
func (*UnshareRequest) Descriptor() ([]byte, []int)
Deprecated: Use UnshareRequest.ProtoReflect.Descriptor instead.
func (*UnshareRequest) GetFid ¶
func (x *UnshareRequest) GetFid() *FID
func (*UnshareRequest) GetUnshareWith ¶
func (x *UnshareRequest) GetUnshareWith() string
func (*UnshareRequest) GetUsername ¶
func (x *UnshareRequest) GetUsername() string
func (*UnshareRequest) ProtoMessage ¶
func (*UnshareRequest) ProtoMessage()
func (*UnshareRequest) ProtoReflect ¶
func (x *UnshareRequest) ProtoReflect() protoreflect.Message
func (*UnshareRequest) Reset ¶
func (x *UnshareRequest) Reset()
func (*UnshareRequest) String ¶
func (x *UnshareRequest) String() string
type UnshareResponse ¶
type UnshareResponse struct {
// contains filtered or unexported fields
}
func (*UnshareResponse) Descriptor
deprecated
func (*UnshareResponse) Descriptor() ([]byte, []int)
Deprecated: Use UnshareResponse.ProtoReflect.Descriptor instead.
func (*UnshareResponse) GetError ¶
func (x *UnshareResponse) GetError() string
func (*UnshareResponse) GetSuccess ¶
func (x *UnshareResponse) GetSuccess() bool
func (*UnshareResponse) ProtoMessage ¶
func (*UnshareResponse) ProtoMessage()
func (*UnshareResponse) ProtoReflect ¶
func (x *UnshareResponse) ProtoReflect() protoreflect.Message
func (*UnshareResponse) Reset ¶
func (x *UnshareResponse) Reset()
func (*UnshareResponse) String ¶
func (x *UnshareResponse) String() string
type UploadFileRequest ¶
type UploadFileRequest struct {
ParentFid *FID `protobuf:"bytes,1,opt,name=parentFid,proto3" json:"parentFid,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Offset uint64 `protobuf:"varint,3,opt,name=offset,proto3" json:"offset,omitempty"`
User string `protobuf:"bytes,4,opt,name=user,proto3" json:"user,omitempty"`
Chunk []byte `protobuf:"bytes,5,opt,name=chunk,proto3" json:"chunk,omitempty"` // file data chunk
// contains filtered or unexported fields
}
func (*UploadFileRequest) Descriptor
deprecated
func (*UploadFileRequest) Descriptor() ([]byte, []int)
Deprecated: Use UploadFileRequest.ProtoReflect.Descriptor instead.
func (*UploadFileRequest) GetChunk ¶
func (x *UploadFileRequest) GetChunk() []byte
func (*UploadFileRequest) GetName ¶
func (x *UploadFileRequest) GetName() string
func (*UploadFileRequest) GetOffset ¶
func (x *UploadFileRequest) GetOffset() uint64
func (*UploadFileRequest) GetParentFid ¶
func (x *UploadFileRequest) GetParentFid() *FID
func (*UploadFileRequest) GetUser ¶
func (x *UploadFileRequest) GetUser() string
func (*UploadFileRequest) ProtoMessage ¶
func (*UploadFileRequest) ProtoMessage()
func (*UploadFileRequest) ProtoReflect ¶
func (x *UploadFileRequest) ProtoReflect() protoreflect.Message
func (*UploadFileRequest) Reset ¶
func (x *UploadFileRequest) Reset()
func (*UploadFileRequest) String ¶
func (x *UploadFileRequest) String() string
type UploadFileResponse ¶
type UploadFileResponse struct {
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
// contains filtered or unexported fields
}
func (*UploadFileResponse) Descriptor
deprecated
func (*UploadFileResponse) Descriptor() ([]byte, []int)
Deprecated: Use UploadFileResponse.ProtoReflect.Descriptor instead.
func (*UploadFileResponse) GetError ¶
func (x *UploadFileResponse) GetError() string
func (*UploadFileResponse) GetSuccess ¶
func (x *UploadFileResponse) GetSuccess() bool
func (*UploadFileResponse) ProtoMessage ¶
func (*UploadFileResponse) ProtoMessage()
func (*UploadFileResponse) ProtoReflect ¶
func (x *UploadFileResponse) ProtoReflect() protoreflect.Message
func (*UploadFileResponse) Reset ¶
func (x *UploadFileResponse) Reset()
func (*UploadFileResponse) String ¶
func (x *UploadFileResponse) String() string
type WriteFileRequest ¶
type WriteFileRequest struct {
ParentFid *FID `protobuf:"bytes,1,opt,name=parentFid,proto3" json:"parentFid,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Offset uint64 `protobuf:"varint,3,opt,name=offset,proto3" json:"offset,omitempty"`
Data []byte `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"`
// contains filtered or unexported fields
}
func (*WriteFileRequest) Descriptor
deprecated
func (*WriteFileRequest) Descriptor() ([]byte, []int)
Deprecated: Use WriteFileRequest.ProtoReflect.Descriptor instead.
func (*WriteFileRequest) GetData ¶
func (x *WriteFileRequest) GetData() []byte
func (*WriteFileRequest) GetName ¶
func (x *WriteFileRequest) GetName() string
func (*WriteFileRequest) GetOffset ¶
func (x *WriteFileRequest) GetOffset() uint64
func (*WriteFileRequest) GetParentFid ¶
func (x *WriteFileRequest) GetParentFid() *FID
func (*WriteFileRequest) ProtoMessage ¶
func (*WriteFileRequest) ProtoMessage()
func (*WriteFileRequest) ProtoReflect ¶
func (x *WriteFileRequest) ProtoReflect() protoreflect.Message
func (*WriteFileRequest) Reset ¶
func (x *WriteFileRequest) Reset()
func (*WriteFileRequest) String ¶
func (x *WriteFileRequest) String() string
type WriteFileResponse ¶
type WriteFileResponse struct {
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
Version uint64 `protobuf:"varint,3,opt,name=version,proto3" json:"version,omitempty"` // new version after write
// contains filtered or unexported fields
}
func (*WriteFileResponse) Descriptor
deprecated
func (*WriteFileResponse) Descriptor() ([]byte, []int)
Deprecated: Use WriteFileResponse.ProtoReflect.Descriptor instead.
func (*WriteFileResponse) GetError ¶
func (x *WriteFileResponse) GetError() string
func (*WriteFileResponse) GetSuccess ¶
func (x *WriteFileResponse) GetSuccess() bool
func (*WriteFileResponse) GetVersion ¶
func (x *WriteFileResponse) GetVersion() uint64
func (*WriteFileResponse) ProtoMessage ¶
func (*WriteFileResponse) ProtoMessage()
func (*WriteFileResponse) ProtoReflect ¶
func (x *WriteFileResponse) ProtoReflect() protoreflect.Message
func (*WriteFileResponse) Reset ¶
func (x *WriteFileResponse) Reset()
func (*WriteFileResponse) String ¶
func (x *WriteFileResponse) String() string