MCPcopy
hub / github.com/netdata/netdata / ParseAndValidate

Method ParseAndValidate

src/go/plugin/framework/dyncfg/handler.go:22–22  ·  view source on GitHub ↗

ParseAndValidate parses payload into a config with dyncfg metadata set. Includes all validation (including heavy checks like module instantiation).

(fn Function, name string)

Source from the content-addressed store, hash-verified

20 // ParseAndValidate parses payload into a config with dyncfg metadata set.
21 // Includes all validation (including heavy checks like module instantiation).
22 ParseAndValidate(fn Function, name string) (C, error)
23
24 // ValidateJobName enforces the domain's job-name policy. Called before
25 // ParseAndValidate so cheap name-format rejections happen without parsing payload.

Callers 3

CmdAddMethod · 0.65
CmdUpdateMethod · 0.65
TestSecretStoreCallbacksFunction · 0.65

Implementers 5

mockCallbackssrc/go/plugin/framework/dyncfg/handler
sdCallbackssrc/go/plugin/agent/discovery/sd/dyncf
collectorSeqTestCallbackssrc/go/plugin/agent/jobmgr/dyncfg_coll
collectorCallbackssrc/go/plugin/agent/jobmgr/dyncfg_coll
secretStoreCallbackssrc/go/plugin/agent/jobmgr/secretsctl/

Calls

no outgoing calls

Tested by 1

TestSecretStoreCallbacksFunction · 0.52