testutil

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTarArchive

func CreateTarArchive(files map[string]string) ([]byte, error)

CreateTarArchive creates a tar archive with the given files. files is a map of path -> content.

func CreateTestImage

func CreateTestImage(config *v1.ConfigFile) (v1.Image, error)

CreateTestImage creates a minimal test container image with the given config.

func WriteTarFile

func WriteTarFile(fs afero.Fs, path string, files map[string]string) error

WriteTarFile writes a tar archive to a file.

Types

This section is empty.

Jump to

Keyboard shortcuts

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