builder-next: Add Info
to emptyProvider
To satisfy the `content.InfoReaderProvider` interface. Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
This commit is contained in:
parent
2c9c5e1c03
commit
261dccc98a
1 changed files with 4 additions and 0 deletions
|
@ -570,3 +570,7 @@ type emptyProvider struct{}
|
|||
func (p *emptyProvider) ReaderAt(ctx context.Context, dec ocispec.Descriptor) (content.ReaderAt, error) {
|
||||
return nil, errors.Errorf("ReaderAt not implemented for empty provider")
|
||||
}
|
||||
|
||||
func (p *emptyProvider) Info(ctx context.Context, d digest.Digest) (content.Info, error) {
|
||||
return content.Info{}, errors.Errorf("Info not implemented for empty provider")
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue