Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Join ¶
Join joins YAML resources into a single YAML document. It does not validate individual resources.
Types ¶
type K8sEncoder ¶ added in v0.18.0
type K8sEncoder struct {
// contains filtered or unexported fields
}
K8sEncoder leverages the Kubernetes YAML package (sigs.k8s.io/yaml) to provide an Encoder data structure that is friendlier to the io package.
func NewK8sEncoder ¶ added in v0.18.0
func NewK8sEncoder(out io.Writer) K8sEncoder
NewK8sEncoder creates a K8sEncoder instance that writes to out.
func (K8sEncoder) Encode ¶ added in v0.18.0
func (e K8sEncoder) Encode(v any) error
Encode marshals v into YAML and writes it to e's output stream.
Click to show internal directories.
Click to hide internal directories.