canvas

package
v0.85.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 7, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateRendererProperties

func ValidateRendererProperties(renderer string, props map[string]any, metricsViews map[string]*runtimev1.MetricsViewSpec) error

ValidateRendererProperties validates the renderer properties for a component. The provided metricsViews should contain every valid metrics view referenced by the component (as determined in the parser). If the renderer properties reference a metrics view not in metricsViews, assume the metrics view is invalid or does not exist (don't look it up separately in the catalog).

Note: that metrics views referenced through markdown or metrics_sql cannot be validated here. This is because the upstream parser can't extract refs from them, so the metrics views cannot be passed through to here. Warning: if you try to fix this, note that the refs must be added in the parser, not looked up dynamically here; a dynamic lookup will have a race condition where the metrics view may not have been reconciled yet.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL