utils

package
v0.36.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 22, 2024 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package utils contains various utility functions for template operations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Describe

func Describe(r resource.Resource) string

Describe a resources in human readable format.

func MarshalResource

func MarshalResource(r resource.Resource) ([]byte, error)

MarshalResource to YAML format (bytes).

func RenderDiff

func RenderDiff(w io.Writer, oldR, newR resource.Resource) error

RenderDiff outputs colorized diff between two resources.

One of the resources might be nil.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL