Documentation
¶
Overview ¶
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. *
This product includes software developed at Datadog (https://www.datadoghq.com) Copyright 2024 Datadog, Inc.
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. *
This product includes software developed at Datadog (https://www.datadoghq.com) Copyright 2024 Datadog, Inc.
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. *
This product includes software developed at Datadog (https://www.datadoghq.com) Copyright 2024 Datadog, Inc.
Package resourceindex builds the input.resources typed index from a flat slice of combined documents. It is split into per-platform adapter files that are dispatched from Build.
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. *
This product includes software developed at Datadog (https://www.datadoghq.com) Copyright 2024 Datadog, Inc.
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. *
This product includes software developed at Datadog (https://www.datadoghq.com) Copyright 2024 Datadog, Inc.
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. *
This product includes software developed at Datadog (https://www.datadoghq.com) Copyright 2024 Datadog, Inc.
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. *
This product includes software developed at Datadog (https://www.datadoghq.com) Copyright 2024 Datadog, Inc.
Index ¶
Constants ¶
const ( EntryResourceType = "resourceType" EntryResourceName = "resourceName" EntryDD = "_dd" EntryDDPath = "path" EntryDDScope = "scope" EntryDDPlatform = "platform" EntryDDDocumentID = "documentId" EntryDDResourceID = "resourceId" // index-internal occurrence ID for relationship scopes EntryDDFieldMap = "fieldMap" EntryDDEvaluationScopes = "evaluationScopes" EntryDDRelationshipScopes = "relationshipScopes" K8sPodSpecBucket = "k8s.pod_spec" K8sContainerBucket = "k8s.container" K8sCNIConfigBucket = "cni.config" )
Entry field keys for the metadata injected into every resource index entry. Exported so the engine package can re-declare local aliases for its own tests.
Variables ¶
This section is empty.
Functions ¶
func Build ¶
func Build(docs []interface{}, filesMap map[string]*model.FileMetadata) map[string]interface{}
Build constructs the input.resources typed index from a flat slice of combined documents. See the buildResourceIndex comment in pkg/engine for full semantics.
func FilterByDocumentIDs ¶
func FilterByDocumentIDs(index map[string]interface{}, documentIDs map[string]struct{}) map[string]interface{}
FilterByDocumentIDs returns an index containing entries whose _dd.documentId belongs to documentIDs. Buckets are copied while entries remain immutable.
Types ¶
type ProvenanceMap ¶
ProvenanceMap records the source field name for each authoring-side field produced by authoringMap. Key: authoring-side field path (dot-separated), Value: original source field name. Only renamed entries are recorded.