Steps 10 & 11: Garden accessors and proto-manifest conversion.

Step 10: GetManifest, BlobExists, ReadBlob, WriteBlob, ReplaceManifest
accessor methods on Garden. 5 tests.

Step 11: ManifestToProto/ProtoToManifest conversion functions in
server package with time.Time <-> timestamppb handling. Round-trip
test covering all 3 entry types.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-23 23:25:07 -07:00
parent 34330a35ef
commit ebf55bb570
4 changed files with 196 additions and 8 deletions

View File

@@ -106,17 +106,17 @@ Depends on Step 5.
*Can be done in parallel with Step 11.*
- [ ] `garden/garden.go`: `GetManifest()`, `BlobExists()`, `ReadBlob()`, `WriteBlob()`, `ReplaceManifest()`
- [ ] Tests for each accessor
- [ ] Verify: `go test ./garden/...`
- [x] `garden/garden.go`: `GetManifest()`, `BlobExists()`, `ReadBlob()`, `WriteBlob()`, `ReplaceManifest()`
- [x] Tests for each accessor
- [x] Verify: `go test ./garden/...`
### Step 11: Proto-Manifest Conversion
*Can be done in parallel with Step 10.*
- [ ] `server/convert.go`: `ManifestToProto`, `ProtoToManifest`, entry helpers
- [ ] `server/convert_test.go`: round-trip test
- [ ] Verify: `go test ./server/...`
- [x] `server/convert.go`: `ManifestToProto`, `ProtoToManifest`, entry helpers
- [x] `server/convert_test.go`: round-trip test
- [x] Verify: `go test ./server/...`
### Step 12: Server Implementation (No Auth)