19 lines
380 B
Go
19 lines
380 B
Go
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
|
|
}
|