inrupt / wac-ldp

A central component for Solid servers, handles Web Access Control and Linked Data Platform concerns.
MIT License
12 stars 5 forks source link

Reduce StoreManager API #125

Closed michielbdejong closed 5 years ago

michielbdejong commented 5 years ago

Also addresses #129, #133, #126, #124.

michielbdejong commented 5 years ago

Did a lot of refactoring, need to get unit tests in shape again now.

michielbdejong commented 5 years ago

In the previous design, ResourceData could travel all the way from a Blob to the HttpResponder. Now, we should have different things in different layers:

5. pod-server

4. wac-ldp

michielbdejong commented 5 years ago

interface Blob extends Node {
  getData (): Promise<Array<Buffer>>
  setData (data: Array<Buffer>): Promise<void>
  getBodyVersion (etag: string): Promise<ReadableStream>
  setBodyVersion (etag: string, data: ReadableStream): Promise<void>
  deleteBodyVersion (etag: string): Promise<void>
}
michielbdejong commented 5 years ago

Three important interfaces:

michielbdejong commented 5 years ago

Cancelled in favour of Operation Treasure Trove.