Versions in this module Expand all Collapse all v0 v0.2.3 Nov 16, 2026 Changes in this version + type FaultConfig struct + FailAfterNBytes int64 + FailOnNthRequest int + LatencyPerRequest time.Duration + PathFaults map[string]*FaultConfig + StatusCodeOverride int + type MockRegistry struct + func NewMockRegistry() *MockRegistry + func (r *MockRegistry) AddBlob(content []byte) string + func (r *MockRegistry) AddBlobWithDigest(digest string, content []byte) *MockRegistry + func (r *MockRegistry) AddManifest(ref string, manifest ocispec.Manifest) *MockRegistry + func (r *MockRegistry) BlobExists(digest string) bool + func (r *MockRegistry) Close() + func (r *MockRegistry) GetBlob(digest string) ([]byte, bool) + func (r *MockRegistry) Host() string + func (r *MockRegistry) ManifestExists(ref string) bool + func (r *MockRegistry) RequestCount() int64 + func (r *MockRegistry) RequestCountByPath(pathSuffix string) int64 + func (r *MockRegistry) SetKeepAlivesEnabled(v bool) + func (r *MockRegistry) WithFault(f *FaultConfig) *MockRegistry + type TrackingReadCloser struct + func NewTrackingReadCloser(rc io.ReadCloser) *TrackingReadCloser + func (t *TrackingReadCloser) AssertClosed(tb testing.TB) + func (t *TrackingReadCloser) AssertNotClosed(tb testing.TB) + func (t *TrackingReadCloser) Close() error + func (t *TrackingReadCloser) WasClosed() bool