flatTree is a workspace tree where all workspaces are direct children of the root cluster. There is no nesting — every workspace lives at depth 1. We mainly use this for comparison with nested trees.
| 28 | // root cluster. There is no nesting — every workspace lives at depth 1. |
| 29 | // We mainly use this for comparison with nested trees. |
| 30 | type flatTree struct { |
| 31 | root logicalcluster.Path |
| 32 | Count int |
| 33 | } |
| 34 | |
| 35 | // NewFlatTree creates a flat workspace tree with the given total count rooted |
| 36 | // at the given logical cluster path. |
nothing calls this directly
no outgoing calls
no test coverage detected