Versions in this module Expand all Collapse all v0 v0.1.0 Jul 28, 2024 Changes in this version + func GzipTarballBytes(fs fs.FS) []byte + func TarballBytes(fs fs.FS) []byte + type CacheListener struct + func NewCacheListener() *CacheListener + func (l *CacheListener) CacheHits(registry, pkg, version string) int + func (l *CacheListener) DeleteCalls(registry, pkg, version string) int + func (l *CacheListener) FetchBytes(registry, pkg, version string) int64 + func (l *CacheListener) FetchCalls(registry, pkg, version string) int + func (l *CacheListener) FetchWriteCalls(registry, pkg, version string) int + func (l *CacheListener) FetchWriteContent(registry, pkg, version string) io.Reader + func (l *CacheListener) FetchWriteTotal(registry, pkg, version string) int64 + func (l *CacheListener) OnCacheHit(registry, pkg, version string) + func (l *CacheListener) OnDelete(registry, pkg, version string) + func (l *CacheListener) OnFetch(registry, pkg, version string, bytes int64) + func (l *CacheListener) OnFetchWrite(registry, pkg, version string, bytes []byte) + func (l *CacheListener) OnUnpack(registry, pkg, version, file string, size int64) + func (l *CacheListener) OnUnpackWrite(registry, pkg, version, file string, bytes []byte) + func (l *CacheListener) UnpackCalls(registry, pkg, version string) int + func (l *CacheListener) UnpackFileCalls(registry, pkg, version, file string) int + func (l *CacheListener) UnpackFileTotal(registry, pkg, version, file string) int64 + func (l *CacheListener) UnpackTotal(registry, pkg, version string) int64 + func (l *CacheListener) UnpackWriteCalls(registry, pkg, version string) int + func (l *CacheListener) UnpackWriteContent(registry, pkg, version string) io.Reader + func (l *CacheListener) UnpackWriteTotal(registry, pkg, version string) int64 + type FakeClient struct + func NewFakeClient() *FakeClient + func (fc *FakeClient) Set(name, version string, statusCode int, content []byte) + func (fc *FakeClient) SetError(name, version string, err error) + func (fc *FakeClient) SetGzipTarball(name, version string, content []byte) + func (fc *FakeClient) SetTarball(name, version string, content []byte) + func (fc *FakeClient) SetTarballFS(name, version string, fs fs.FS) + type FakeServer struct + func NewFakeServer() *FakeServer + func (f *FakeServer) Close() + func (f *FakeServer) SetContent(name, version, contentType string, bytes []byte) + func (f *FakeServer) SetError(name, version string, err error) + func (f *FakeServer) SetGzipTarball(name, version string, bytes []byte) + func (f *FakeServer) SetIndirectGzipTarball(name, version string, content []byte) + func (f *FakeServer) SetIndirectTarball(name, version string, content []byte) + func (f *FakeServer) SetIndirectTarballFS(name, version string, fs fs.FS) + func (f *FakeServer) SetStatusCode(name, version string, code int) + func (f *FakeServer) SetTarball(name, version string, bytes []byte) + func (f *FakeServer) SetTarballFS(name, version string, fs fs.FS) + func (f *FakeServer) URL() string