validate

package
v0.55.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DashboardSpec

func DashboardSpec(spec dashboard.Spec, sch schema.Schema, proxyCfg *config.HTTPProxyConfig) error

DashboardSpec validates the dashboard spec. proxyCfg is the configuration of the HTTP proxy of the server, used to validate the proxy of the local datasources. It can be nil when the server configuration is not known (e.g. when linting offline). The server-dependent checks are then skipped.

func DashboardSpecWithVars

func DashboardSpecWithVars(spec dashboard.Spec, sch schema.Schema, proxyCfg *config.HTTPProxyConfig, projectVariables []*modelV1.Variable, globalVariables []*modelV1.GlobalVariable) error

DashboardSpecWithVars is like DashboardSpec, but also takes into account the project and global variables.

func DashboardWithCustomRules added in v0.51.0

func DashboardWithCustomRules(dash *modelV1.Dashboard, customRules []*config.CustomLintRule) error

func Datasource

func Datasource[T modelV1.DatasourceInterface](entity T, list []T, sch schema.Schema, proxyCfg *config.HTTPProxyConfig) error

Datasource validates the datasource. When list is not nil, it also verifies there is only one default datasource per kind. proxyCfg is the configuration of the HTTP proxy of the server, used to validate the proxy of the datasource. It can be nil when the server configuration is not known (e.g. when linting offline). The server-dependent checks are then skipped.

func Variable

func Variable(entity modelV1.VariableInterface, sch schema.Schema) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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