Versions in this module Expand all Collapse all v0 v0.2.2 Jan 15, 2025 Changes in this version + const CacheTarget + const SSDOverProvisionFactor + func PolicyHDDOnly(s *Module) []filesystem.Pool + func PolicySSDFirst(s *Module) []filesystem.Pool + func PolicySSDOnly(s *Module) []filesystem.Pool + type Module struct + func New(ctx context.Context) (*Module, error) + func (m *Module) DeviceAllocate(min gridtypes.Unit) (pkg.Device, error) + func (m *Module) DeviceLookup(name string) (pkg.Device, error) + func (m *Module) Devices() ([]pkg.Device, error) + func (s *Module) BrokenDevices() []pkg.BrokenDevice + func (s *Module) BrokenPools() []pkg.BrokenPool + func (s *Module) Cache() (pkg.Volume, error) + func (s *Module) DiskCreate(name string, size gridtypes.Unit) (disk pkg.VDisk, err error) + func (s *Module) DiskDelete(name string) error + func (s *Module) DiskExists(id string) bool + func (s *Module) DiskFormat(name string) error + func (s *Module) DiskList() ([]pkg.VDisk, error) + func (s *Module) DiskLookup(id string) (disk pkg.VDisk, err error) + func (s *Module) DiskResize(name string, size gridtypes.Unit) (disk pkg.VDisk, err error) + func (s *Module) DiskWrite(name string, image string) error + func (s *Module) Metrics() ([]pkg.PoolMetrics, error) + func (s *Module) Monitor(ctx context.Context) <-chan pkg.PoolsStats + func (s *Module) Total(kind pkg.DeviceType) (uint64, error) + func (s *Module) VolumeCreate(name string, size gridtypes.Unit) (pkg.Volume, error) + func (s *Module) VolumeDelete(name string) error + func (s *Module) VolumeExists(name string) (bool, error) + func (s *Module) VolumeList() ([]pkg.Volume, error) + func (s *Module) VolumeLookup(name string) (pkg.Volume, error) + func (s *Module) VolumeUpdate(name string, size gridtypes.Unit) error + type Policy func(s *Module) []filesystem.Pool + type TypeCache struct + func (t *TypeCache) Get(name string) (pkg.DeviceType, bool)