package
1.4.0-alpha.2
Repository: https://github.com/stackpointcloud/kubernetes.git
Documentation: pkg.go.dev

# Functions

GuessJSONStream scans the provided reader up to size, looking for an open brace indicating this is JSON.
NewDocumentDecoder decodes YAML documents from the provided stream in chunks by converting each document (as defined by the YAML spec) into its own chunk.
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

YAMLDecoder reads chunks of objects and returns ErrShortBuffer if the data is not sufficient.
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.