(p []byte)
| 1852 | } |
| 1853 | |
| 1854 | func (l writeLogger) Write(p []byte) (n int, err error) { |
| 1855 | lines := bytes.Split(p, []byte("\n")) |
| 1856 | for _, line := range lines { |
| 1857 | l.logf(l.level, "%s", line) |
| 1858 | } |
| 1859 | return len(p), nil |
| 1860 | } |
| 1861 | |
| 1862 | // Allows quick testing of layer caching using a local directory! |
| 1863 | func serveLocalRegistry(ctx context.Context, logf log.Func, layerCacheDir string) (string, func(), error) { |
no outgoing calls