Add initial Go server skeleton with HTTP handlers, middleware, job runner, and stubs

This commit is contained in:
Dev
2025-12-13 15:18:04 +00:00
commit 61570cae23
28 changed files with 921 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
package stubs
import (
"context"
"log"
)
type ZFSAdapter struct{}
func (z *ZFSAdapter) ListPools(ctx context.Context) ([]string, error) {
log.Printf("zfs: ListPools (stub)")
return []string{"tank"}, nil
}
func (z *ZFSAdapter) CreatePool(ctx context.Context, name string, vdevs []string) error {
log.Printf("zfs: CreatePool %s (stub) vdevs=%v", name, vdevs)
return nil
}