registrytest

package
v1.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(t testing.TB, mws ...func(http.Handler) http.Handler) string

New starts a new Docker registry listening on localhost. It will automatically shut down when the test finishes. It will store data in memory.

func WriteContainer

func WriteContainer(t *testing.T, serverURL, containerRef, mediaType string, files map[string]any) string

WriteContainer uploads a container to the registry server. It returns the reference to the uploaded container.

Types

This section is empty.

Jump to

Keyboard shortcuts

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