Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JoinString ¶
JoinString joins the given yaml parts into a single multipart document.
Types ¶
type LineReader ¶
type LineReader struct {
// contains filtered or unexported fields
}
func (*LineReader) Read ¶
func (r *LineReader) Read() ([]byte, error)
Read returns a single line (with '\n' ended) from the underlying reader. An error is returned iff there is an error with the underlying reader.
type YAMLReader ¶
type YAMLReader struct {
// contains filtered or unexported fields
}
YAMLReader adapts from Kubernetes YAMLReader(apimachinery.k8s.io/pkg/util/yaml/decoder.go). It records the start line number of the chunk it reads each time.
func NewYAMLReader ¶
func NewYAMLReader(r *bufio.Reader) *YAMLReader
Click to show internal directories.
Click to hide internal directories.