mirror of
https://github.com/moby/buildkit.git
synced 2026-06-24 08:47:57 +00:00
Co-authored-by: Derek McGowan <derek@mcg.dev> Signed-off-by: Marat Radchenko <marat@slonopotamus.org>
16 lines
445 B
Go
16 lines
445 B
Go
package contentutil
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/containerd/containerd/v2/core/remotes"
|
|
intoto "github.com/in-toto/in-toto-golang/in_toto"
|
|
)
|
|
|
|
// RegisterContentPayloadTypes registers content types that are not defined by
|
|
// default but that we expect to find in registry images.
|
|
func RegisterContentPayloadTypes(ctx context.Context) context.Context {
|
|
ctx = remotes.WithMediaTypeKeyPrefix(ctx, intoto.PayloadType, "intoto")
|
|
return ctx
|
|
}
|