package kv

import "k8s.io/cli-runtime/pkg/kustomize/k8sdeps/kv"

Index

Types

type Pair

type Pair struct {
	Key   string
	Value string
}

Pair represents a <key, value> pair.

func KeyValuesFromLine

func KeyValuesFromLine(line []byte, currentLine int) (Pair, error)

KeyValuesFromLine returns a kv with blank key if the line is empty or a comment. The value will be retrieved from the environment if necessary.

func KeyValuesFromLines

func KeyValuesFromLines(content []byte) ([]Pair, error)

KeyValuesFromLines parses given content in to a list of key-value pairs.

Source Files

kv.go

Version
v0.17.4
Published
Mar 13, 2020
Platform
windows/amd64
Imports
8 packages
Last checked
8 minutes ago

Tools for package owners.