Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ParsedDocument ¶
ParsedDocument represents a rendered Kubernetes manifest (as an ordered map) accompanied by extracted metadata in the shape of config.Selector. Only fields present in the underlying document are populated.
func ParseDocuments ¶
func ParseDocuments(content []byte) ([]ParsedDocument, error)
ParseDocuments parses a multi-document or single-document YAML payload and returns a slice of ParsedDocument. Non-mapping (non-object) documents or empty documents are skipped, since Kubernetes manifests are expected to be mappings.
Order of keys in each document is preserved via yaml.MapSlice.
Click to show internal directories.
Click to hide internal directories.