Files
herolib/lib/threefold/grid4/datamodel/model_slice_storage.v
Mahmoud-Emad 6098f166bb feat: Add directory listing functionality
- Add `list_dir` function to `Workspace` struct
- Implement path handling and directory scanning logic
- Refine struct formatting for `Node`, `ComputeSlice`, `StorageSlice`
- Update `StorageSlice.pricing_policy` comment
- Adjust whitespace in CSS styles
2025-08-24 12:00:12 +03:00

13 lines
410 B
V

module datamodel
// 1GB of storage
@[heap]
pub struct StorageSlice {
pub mut:
nodeid u32 // the node in the grid
id int // the id of the slice in the node, are tracked in the node itself
price_cc f64 // price per slice (even if the grouped one)
pricing_policy PricingPolicy // copied from node which is part of nodegroup
sla_policy SLAPolicy
}