testutils

package
v2.0.0-...-443e6bf Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LocalMirrorFromFiles

func LocalMirrorFromFiles(source string, destination string) error

LocalMirrorFromFiles copies a local V2 directory to the destintation with the source directory.

func RegistryFromFiles

func RegistryFromFiles(source string) http.HandlerFunc

RegistryFromFiles mirror a local V2 directory at the destintation with the source directory.

func WriteTestImage

func WriteTestImage(testServer *httptest.Server, dir string) (string, error)

WriteTestImage will use go-containerregistry to push a test image to an httptest.Server and will write the image to an OCI layout if dir is not "".

Types

This section is empty.

Jump to

Keyboard shortcuts

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