manifest

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2025 License: MIT Imports: 7 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 {
	Metadata config.Selector
	Document yaml.MapSlice
}

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.

func (ParsedDocument) Matches

func (d ParsedDocument) Matches(filter *config.Filter) bool

Jump to

Keyboard shortcuts

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