utils

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnvMap

func EnvMap(environ []string) map[string]string

func GzipDecode

func GzipDecode(encodedPlan []byte) ([]byte, error)

func GzipEncode

func GzipEncode(tfplan []byte) ([]byte, error)

func JSONEncodeBytes added in v0.9.4

func JSONEncodeBytes(b []byte) (*apiextensionsv1.JSON, error)

JSONEncodeBytes encodes the given byte slice to a JSON byte slice.

func MustJSONEncodeBytes added in v0.9.4

func MustJSONEncodeBytes(t *testing.T, b []byte) *apiextensionsv1.JSON

MustJSONEncodeBytes is like JSONEncodeBytes but expects a testing.T instance as the first argument.

Types

This section is empty.

Jump to

Keyboard shortcuts

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