Versions in this module Expand all Collapse all v1 v1.0.3 Nov 12, 2025 GO-2026-4911 GO-2026-4911: Docker Model Runner OCI Registry Client Vulnerable to Server-Side Request Forgery (SSRF) in github.com/docker/model-runner v1.0.2 Nov 6, 2025 GO-2026-4911 GO-2026-4911: Docker Model Runner OCI Registry Client Vulnerable to Server-Side Request Forgery (SSRF) in github.com/docker/model-runner v1.0.0 Nov 5, 2025 GO-2026-4911 GO-2026-4911: Docker Model Runner OCI Registry Client Vulnerable to Server-Side Request Forgery (SSRF) in github.com/docker/model-runner Changes in this version + var ErrFlakyFailure = errors.New("simulated read failure") + func AssertDataEquals(t *testing.T, got, want []byte) + func AssertError(t *testing.T, err error, msg string) + func AssertHeaderAbsent(t *testing.T, headers map[string][]string, key string) + func AssertHeaderEquals(t *testing.T, headers map[string][]string, key, want string) + func AssertHeaderPresent(t *testing.T, headers map[string][]string, key string) + func AssertNoError(t *testing.T, err error, msg string) + func ChunkData(data []byte, n int) [][]byte + func ConcatChunks(chunks [][]byte) []byte + func GenerateRandomData(size int) []byte + func GenerateTestData(size int) []byte + func MustRead(t *testing.T, r io.Reader, n int) []byte + func ReadAll(t *testing.T, r io.Reader) []byte + func ReadAllWithError(r io.Reader) ([]byte, error) + type ByteRange struct + End int64 + Start int64 + func CalculateByteRanges(totalSize int64, n int) []ByteRange + type FakeResource struct + ContentType string + Data io.ReaderAt + ETag string + Headers http.Header + LastModified string + Length int64 + SupportsRange bool + type FakeTransport struct + RequestHook func(*http.Request) + ResponseHook func(*http.Response) + func NewFakeTransport() *FakeTransport + func (ft *FakeTransport) Add(url string, resource *FakeResource) + func (ft *FakeTransport) AddSimple(url string, data io.ReaderAt, length int64, supportsRange bool) + func (ft *FakeTransport) GetRequestHeaders(url string) []http.Header + func (ft *FakeTransport) GetRequests() []http.Request + func (ft *FakeTransport) RoundTrip(req *http.Request) (*http.Response, error) + func (ft *FakeTransport) SetFailAfter(url string, n int) + type FlakyReader struct + func NewFlakyReader(data io.ReaderAt, length int64, failAfter int) *FlakyReader + func (fr *FlakyReader) Close() error + func (fr *FlakyReader) HasFailed() bool + func (fr *FlakyReader) Position() int + func (fr *FlakyReader) Read(p []byte) (int, error) + func (fr *FlakyReader) Reset() + type MultiFailReader struct + func NewMultiFailReader(data io.ReaderAt, length int64, failurePoints []int) *MultiFailReader + func (mfr *MultiFailReader) Close() error + func (mfr *MultiFailReader) Read(p []byte) (int, error) + func (mfr *MultiFailReader) Reset()