registryfixture

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package registryfixture assembles the real server for registry protocol suites. Docker and Helm OCI use the same repository, auth and blob-signing boundary without importing root-package test helpers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type World

type World struct {
	T       *testing.T
	Handler http.Handler
	DB      *inmem.Store
	Blobs   blob.Store
}

func New

func New(t *testing.T, anonymous bool, tune ...func(*server.Config)) *World

New builds the same full-router item world used by the root registry tests. The tune callbacks run after stores and authentication are ready.

func (*World) Do

func (w *World) Do(method, path, as, body string, headers ...string) *httptest.ResponseRecorder

func (*World) Item

func (w *World) Item(key string, cached bool, path string) types.Item

Jump to

Keyboard shortcuts

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