testhelpers

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadFromFile

func LoadFromFile[T interface{}](t *testing.T, path string) *T

LoadFromFile is a helper function to read the specified file and unmarshal it into the provided type T.

func LoadResourceList

func LoadResourceList(t *testing.T, krmInputPath, itemsPath string) []*kyaml.RNode

LoadResourceList is a helper function to read the items file from the specified directory. It returns a slice of RNodes representing the input and the items (as in an actual run of a KRM function).

func PushDirectoryToOCIRegistry_T

func PushDirectoryToOCIRegistry_T(t *testing.T, reference, rootDirectory, artifactType, tag string, client remote.Client, plainHTTP bool) ocispec.Descriptor

Types

This section is empty.

Jump to

Keyboard shortcuts

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