MCPcopy
hub / github.com/kcp-dev/kcp / flatTree

Struct flatTree

test/load/pkg/tree/flat.go:30–33  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

28// root cluster. There is no nesting — every workspace lives at depth 1.
29// We mainly use this for comparison with nested trees.
30type 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.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected