Versions in this module Expand all Collapse all v0 v0.33.7 Aug 5, 2026 v0.32.5 Aug 6, 2026 Changes in this version + var DegradedReadyReasons = []string + var ErrAmbiguousNode = errors.New("ambiguous node: multiple nodes match kind and name") + var ErrCycle = errors.New("cycle detected in snapshot tree") + var ErrLeafNotBound = errors.New("VolumeSnapshot leaf not yet captured (no status.data)") + var ErrNodeNotFound = errors.New("node not found in snapshot tree") + var ErrTreeBudget = errors.New("snapshot tree traversal budget exceeded") + func CanonicalSnapshotIdentity(id SnapshotIdentity) string + func CanonicalSourceIdentity(id SourceRefIdentity) string + func FindNode(root *Node, kind, name string) (*Node, []*Node, error) + func IsDegradedReason(reason string) bool + func ParseNodeStatus(obj *unstructured.Unstructured) (SnapshotIdentity, *SourceRefIdentity, *NodeData, error) + type AggregatedManifestSource struct + func NewAggregatedManifestSource(c *aggapi.Client) *AggregatedManifestSource + func (s *AggregatedManifestSource) FetchNodeManifests(ctx context.Context, ref aggapi.NodeRef) ([]unstructured.Unstructured, error) + type ArtifactRef struct + APIVersion string + Kind string + Name string + UID string + type ManifestSource interface + FetchNodeManifests func(ctx context.Context, ref aggapi.NodeRef) ([]unstructured.Unstructured, error) + type Node struct + APIVersion string + Children []*Node + Data *NodeData + Kind string + Name string + Namespace string + Parent *Node + Ready NodeReadyStatus + SourceRef *SourceRefIdentity + UID types.UID + func BuildTree(ctx context.Context, c client.Client, namespace, rootName string) (*Node, error) + func BuildTreeWithLimits(ctx context.Context, c client.Client, namespace string, rootName string, ...) (*Node, error) + func (n *Node) DirBaseName() string + func (n *Node) DisplayLabel() string + func (n *Node) Identity() SnapshotIdentity + func (n *Node) IsVolumeLeaf() bool + func (n *Node) ManifestScopeRef() aggapi.NodeRef + func (n *Node) Ref() aggapi.NodeRef + type NodeData struct + AccessModes []string + ArtifactRef ArtifactRef + FsType string + Size string + SourceRef SourceRefIdentity + StorageClassName string + VolumeMode string + type NodeReadyStatus struct + Message string + Reason string + Status string + type SnapshotIdentity struct + APIVersion string + Kind string + Name string + Namespace string + UID types.UID + type SourceRefIdentity struct + APIVersion string + Kind string + Name string + Namespace string + UID string + func ParseSourceRef(raw string) (SourceRefIdentity, error) + type TreeLimits struct + MaxDepth int + MaxNodes int + func DefaultTreeLimits() TreeLimits