Add initial Go server skeleton with HTTP handlers, middleware, job runner, and stubs
This commit is contained in:
18
internal/infra/stubs/nfs.go
Normal file
18
internal/infra/stubs/nfs.go
Normal file
@@ -0,0 +1,18 @@
|
||||
package stubs
|
||||
|
||||
import (
|
||||
"context"
|
||||
"log"
|
||||
)
|
||||
|
||||
type NFSAdapter struct{}
|
||||
|
||||
func (n *NFSAdapter) ListExports(ctx context.Context) ([]string, error) {
|
||||
log.Println("nfs: ListExports (stub)")
|
||||
return []string{"/export/data"}, nil
|
||||
}
|
||||
|
||||
func (n *NFSAdapter) CreateExport(ctx context.Context, path string) error {
|
||||
log.Printf("nfs: CreateExport path=%s (stub)", path)
|
||||
return nil
|
||||
}
|
||||
Reference in New Issue
Block a user