imagetest

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2024 License: Apache-2.0 Imports: 16 Imported by: 2

README

Image fixture utilities

These are a set of go-utilities for testing to provide on-the-fly images from a docker build, a tar cache dir, or otherwise.

Note: These are NOT meant for use in production, only in go tests.

Documentation

Index

Constants

View Source
const (
	CacheDir    = testutils.TestFixturesDir + string(filepath.Separator) + "cache"
	ImagePrefix = "stereoscope-fixture"
)

Variables

This section is empty.

Functions

func GetFixtureImage

func GetFixtureImage(t testing.TB, source, name string) *image.Image

func GetFixtureImageSIFPath

func GetFixtureImageSIFPath(t testing.TB, name string) string

func GetFixtureImageTarPath

func GetFixtureImageTarPath(t testing.TB, name string) string

func GetGoldenFixtureImage

func GetGoldenFixtureImage(t testing.TB, name string) *image.Image

func LoadFixtureImageIntoContainerd

func LoadFixtureImageIntoContainerd(t testing.TB, name string) string

func LoadFixtureImageIntoDocker

func LoadFixtureImageIntoDocker(t testing.TB, name string) string

func LoadFixtureImageIntoPodman

func LoadFixtureImageIntoPodman(t testing.TB, name string) string

func PrepareFixtureImage

func PrepareFixtureImage(t testing.TB, source, name string) string

func UpdateGoldenFixtureImage

func UpdateGoldenFixtureImage(t testing.TB, name string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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