MCPcopy Create free account
hub / github.com/containerd/nerdctl / composeConvertFunc

Function composeConvertFunc

pkg/cmd/image/crypt.go:124–135  ·  view source on GitHub ↗
(a, b converter.ConvertFunc)

Source from the content-addressed store, hash-verified

122}
123
124func composeConvertFunc(a, b converter.ConvertFunc) converter.ConvertFunc {
125 return func(ctx context.Context, cs content.Store, desc ocispec.Descriptor) (*ocispec.Descriptor, error) {
126 newDesc, err := a(ctx, cs, desc)
127 if err != nil {
128 return newDesc, err
129 }
130 if newDesc == nil {
131 return b(ctx, cs, desc)
132 }
133 return b(ctx, cs, *newDesc)
134 }
135}

Callers 1

CryptFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…