package
1.2.0-alpha.8
Repository: https://github.com/codeb2cc/kubernetes.git
Documentation: pkg.go.dev

# Functions

GuessJSONStream scans the provided reader up to size, looking for an open brace indicating this is JSON.
NewYAMLOrJSONDecoder returns a decoder that will process YAML documents or JSON documents from the given reader as a stream.
NewYAMLToJSONDecoder decodes YAML documents from the provided stream in chunks by converting each document (as defined by the YAML spec) into its own chunk, converting it to JSON via yaml.YAMLToJSON, and then passing it to json.Decoder.
ToJSON converts a single YAML document into a JSON document or returns an error.

# Structs

YAMLOrJSONDecoder attempts to decode a stream of JSON documents or YAML documents by sniffing for a leading { character.
YAMLToJSONDecoder decodes YAML documents from an io.Reader by separating individual documents.