initial commit

This commit is contained in:
2025-11-23 11:29:12 +07:00
commit 382b57ed83
33 changed files with 2360 additions and 0 deletions

25
pkg/storage/storage.go Normal file
View File

@@ -0,0 +1,25 @@
package storage
// Pool abstracts storage operations (minimal set for v1).
type Pool interface {
Name() string
Type() string
AllocateVolume(spec VolumeSpec) (Volume, error)
DeleteVolume(id string) error
}
type VolumeSpec struct {
Name string
SizeGB int
// Pool-specific fields may be embedded later.
}
type Volume struct {
ID string
Name string
Pool string
SizeGB int
Path string
}
// TODO: add concrete pool implementations for dir/lvm/zfs.