kubernetes/vendor/sigs.k8s.io/kustomize/api/kv/kv.go

var utf8bom

type loader

func NewLoader(ldr ifc.Loader, v ifc.Validator) ifc.KvLoader {}

func (kvl *loader) Validator() ifc.Validator {}

func (kvl *loader) Load(
	args types.KvPairSources) (all []types.Pair, err error) {}

func keyValuesFromLiteralSources(sources []string) ([]types.Pair, error) {}

func (kvl *loader) keyValuesFromFileSources(sources []string) ([]types.Pair, error) {}

func (kvl *loader) keyValuesFromEnvFiles(paths []string) ([]types.Pair, error) {}

// keyValuesFromLines parses given content in to a list of key-value pairs.
func (kvl *loader) keyValuesFromLines(content []byte) ([]types.Pair, error) {}

// KeyValuesFromLine returns a kv with blank key if the line is empty or a comment.
func (kvl *loader) keyValuesFromLine(line []byte, currentLine int) (types.Pair, error) {}

// ParseLiteralSource parses the source key=val pair into its component pieces.
// This functionality is distinguished from strings.SplitN(source, "=", 2) since
// it returns an error in the case of empty keys, values, or a missing equals sign.
func parseLiteralSource(source string) (keyName, value string, err error) {}

// removeQuotes removes the surrounding quotes from the provided string only if it is surrounded on both sides
// rather than blindly trimming all quotation marks on either side.
func removeQuotes(str string) string {}