Interface StorageServiceGrpc.AsyncService

All Known Implementing Classes:
FilesystemStorageServiceGrpcImpl, StorageServiceGrpc.StorageServiceImplBase
Enclosing class:
StorageServiceGrpc

public static interface StorageServiceGrpc.AsyncService
 Shared storage management service.
 Operations may fail (or omit data) if the current session does not have permission to read or write that resource.
 Paths will be "/" delimited and must start with a leading slash.
 
  • Method Details

    • listItems

      default void listItems(ListItemsRequest request, io.grpc.stub.StreamObserver<ListItemsResponse> responseObserver)
       Lists the files and directories present in a given directory. Will return an error
       
    • fetchFile

      default void fetchFile(FetchFileRequest request, io.grpc.stub.StreamObserver<FetchFileResponse> responseObserver)
       Reads the file at the given path. Client can optionally specify an etag, asking the server
       not to send the file if it hasn't changed.
       
    • saveFile

      default void saveFile(SaveFileRequest request, io.grpc.stub.StreamObserver<SaveFileResponse> responseObserver)
       Can create new files or modify existing with client provided contents.
       
    • moveItem

      default void moveItem(MoveItemRequest request, io.grpc.stub.StreamObserver<MoveItemResponse> responseObserver)
       Moves a file from one path to another.
       
    • createDirectory

      default void createDirectory(CreateDirectoryRequest request, io.grpc.stub.StreamObserver<CreateDirectoryResponse> responseObserver)
       Creates a directory at the given path.
       
    • deleteItem

      default void deleteItem(DeleteItemRequest request, io.grpc.stub.StreamObserver<DeleteItemResponse> responseObserver)
       Deletes the file or directory at the given path. Directories must be empty to be deleted.