istio: istio.io/istio/galley/pkg/config/util/kubeyaml Index | Files

package kubeyaml

import "istio.io/istio/galley/pkg/config/util/kubeyaml"

Index

Package Files

kubeyaml.go

func Join Uses

func Join(parts ...[]byte) []byte

Join the given yaml parts into a single multipart document.

func JoinString Uses

func JoinString(parts ...string) string

JoinString joins the given yaml parts into a single multipart document.

type LineReader Uses

type LineReader struct {
    // contains filtered or unexported fields
}

func (*LineReader) Read Uses

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 Reader Uses

type Reader interface {
    Read() ([]byte, error)
}

type YAMLReader Uses

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 Uses

func NewYAMLReader(r *bufio.Reader) *YAMLReader

func (*YAMLReader) Read Uses

func (r *YAMLReader) Read() ([]byte, int, error)

Read returns a full YAML document and its first line number.

Package kubeyaml imports 5 packages (graph) and is imported by 1 packages. Updated 2020-10-03. Refresh now. Tools for package owners.