util

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateSpecHash

func CalculateSpecHash(spec runtime.RawExtension) (string, error)

CalculateSpecHash returns the calculated hash of the RawExtension spec Raw field converted to a map.

func MustHash

func MustHash(v any) string

MustHash returns a sha256 encoded string based on the given argument.

func MustJSON

func MustJSON(in any) string

MustJSON makes sure the in argument is a valid JSON struct and returns its marshalled string version.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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