vendor: update buildkit to master@cbfd4023383d

Signed-off-by: Justin Chadwell <me@jedevc.com>
This commit is contained in:
Justin Chadwell
2023-09-07 12:13:54 +01:00
parent e018f8b6fb
commit e2ebab5f26
60 changed files with 1912 additions and 664 deletions

View File

@ -0,0 +1,24 @@
package contentutil
import (
"context"
"github.com/containerd/containerd/content"
ocispecs "github.com/opencontainers/image-spec/specs-go/v1"
)
func NewStoreWithProvider(cs content.Store, p content.Provider) content.Store {
return &storeWithProvider{Store: cs, p: p}
}
type storeWithProvider struct {
content.Store
p content.Provider
}
func (cs *storeWithProvider) ReaderAt(ctx context.Context, desc ocispecs.Descriptor) (content.ReaderAt, error) {
if ra, err := cs.p.ReaderAt(ctx, desc); err == nil {
return ra, nil
}
return cs.Store.ReaderAt(ctx, desc)
}