| 490 | return nil, errors.New("unsupported") |
| 491 | } |
| 492 | func (c cacheMockerSource) V1TarReader(overrideName string) (io.ReadCloser, error) { |
| 493 | _, found := c.c.images[c.ref.String()] |
| 494 | if !found { |
| 495 | return nil, fmt.Errorf("no image found with ref: %s", c.ref.String()) |
| 496 | } |
| 497 | b := make([]byte, 256) |
| 498 | _, _ = rand.Read(b) |
| 499 | return io.NopCloser(bytes.NewReader(b)), nil |
| 500 | } |
| 501 | func (c cacheMockerSource) OCITarReader(overrideName string) (io.ReadCloser, error) { |
| 502 | _, found := c.c.images[c.ref.String()] |
| 503 | if !found { |