MCPcopy Index your code
hub / github.com/docker/docker-agent / ToJSON

Method ToJSON

pkg/hooks/types.go:439–439  ·  view source on GitHub ↗

ToJSON serializes the input.

()

Source from the content-addressed store, hash-verified

437
438// ToJSON serializes the input.
439func (i *Input) ToJSON() ([]byte, error) { return json.Marshal(i) }
440
441// ErrorPolicy controls what happens when a non-fail-closed hook fails.
442type ErrorPolicy string

Callers 4

TestInputToJSONFunction · 0.95
DispatchMethod · 0.80
runModelHookFunction · 0.80

Calls

no outgoing calls

Tested by 3

TestInputToJSONFunction · 0.76
runModelHookFunction · 0.64