File
Blob: src/worker/git/operations/fetch/types.ts
| 1 | import type { CacheContext } from "@/worker/cache"; |
| 2 | import type { IdxView } from "@/worker/git/object-store/types"; |
| 3 | |
| 4 | export type OrderedPackSnapshotEntry = { |
| 5 | packKey: string; |
| 6 | packBytes: number; |
| 7 | idx: IdxView; |
| 8 | }; |
| 9 | |
| 10 | export type OrderedPackSnapshot = { |
| 11 | packs: OrderedPackSnapshotEntry[]; |
| 12 | }; |
| 13 | |
| 14 | export type ServeUploadPackPlan = { |
| 15 | type: "Serve"; |
| 16 | repoId: string; |
| 17 | snapshot: OrderedPackSnapshot; |
| 18 | neededOids: string[]; |
| 19 | ackOids: string[]; |
| 20 | signal?: AbortSignal; |
| 21 | cacheCtx?: CacheContext; |
| 22 | }; |
| 23 | |
| 24 | export type UploadPackPlan = |
| 25 | | ServeUploadPackPlan |
| 26 | | { |
| 27 | type: "RepositoryNotReady"; |
| 28 | }; |