parser

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ParsedDocument

type ParsedDocument struct {
	Kind string         // Surface | Agent | Profile | Grant
	ID   string         // metadata.id
	Doc  types.Document // typed document
}

ParsedDocument is a generic wrapper around a parsed control-plane resource.

func ParseYAML

func ParseYAML(data []byte) (ParsedDocument, error)

ParseYAML parses a single YAML document into a typed control-plane document.

func ParseYAMLStream

func ParseYAMLStream(data []byte) ([]ParsedDocument, error)

ParseYAMLStream parses multiple YAML documents separated by ---.

Jump to

Keyboard shortcuts

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