Documentation
¶
Overview ¶
Package jsontool provides the deterministic json.inspect Spice Agent tool.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Manifest ¶
func Manifest() spicestarter.Manifest
Manifest returns exact compatibility and review metadata.
Types ¶
type JSONInspection ¶
type JSONInspection struct {
Kind string `json:"kind"`
Bytes int `json:"bytes"`
Nodes int `json:"nodes"`
Depth int `json:"depth"`
SHA256 string `json:"sha256"`
}
JSONInspection is a deterministic, immutable description of one JSON document.
func NewJSONInspection ¶
func NewJSONInspection(document, kind string, nodes, depth int) JSONInspection
NewJSONInspection constructs the exact-document inspection result.
type JSONInspectionRequest ¶
type JSONInspectionRequest struct {
Document string `json:"document"`
}
JSONInspectionRequest is the strict model-visible input for json.inspect.
type JSONInspector ¶
type JSONInspector struct {
// contains filtered or unexported fields
}
JSONInspector implements the deterministic read-only json.inspect tool.
func NewJSONInspector ¶
func NewJSONInspector() (*JSONInspector, error)
NewJSONInspector constructs the extension tool and validates its public definition.
func (*JSONInspector) Definition ¶
func (inspector *JSONInspector) Definition() tool.Definition
Definition returns a defensive copy of the model-visible contract.
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package autoconfigure contributes the fallback tool only through an explicit blank import.
|
Package autoconfigure contributes the fallback tool only through an explicit blank import. |
|
internal
|
|
|
qualitygate
command
|
|
Click to show internal directories.
Click to hide internal directories.