Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DetectKind ¶
DetectKind extracts the kind from raw YAML bytes.
func ParseDocuments ¶
ParseDocuments reads YAML from the given reader and splits it into multiple documents. Documents are separated by `---` at the start of a line (optionally preceded by whitespace), following the YAML specification. The separator must appear on its own line.
Types ¶
type Document ¶
type Document struct {
Index int
Raw []byte
APIVersion v1beta1.Version
Kind v1beta1.Kind
RealmDoc *v1beta1.RealmDoc
SpaceDoc *v1beta1.SpaceDoc
StackDoc *v1beta1.StackDoc
CellDoc *v1beta1.CellDoc
ContainerDoc *v1beta1.ContainerDoc
}
Document represents a parsed YAML document with its type information.
type ValidationError ¶
ValidationError represents a validation error for a specific document.
func ValidateDocument ¶
func ValidateDocument(doc *Document) *ValidationError
ValidateDocument validates a parsed document for required fields and constraints.
func (*ValidationError) Error ¶
func (e *ValidationError) Error() string
Click to show internal directories.
Click to hide internal directories.