utils

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EvaluateJsonnet

func EvaluateJsonnet(filename string) ([]byte, error)

func IsJSON

func IsJSON(data []byte) bool

func JSONToYAML

func JSONToYAML(data []byte) ([]byte, error)

func PrettyJSON

func PrettyJSON(data []byte) string

func ReadJSONorJsonnet

func ReadJSONorJsonnet(path string) ([]byte, error)

func RunCommand

func RunCommand(cmdWithArgs []string, silent bool) (string, string, bool, error)

func TrapInt

func TrapInt(proc func() error, teardown0 func()) error

func YAMLToJSON

func YAMLToJSON(data []byte) ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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