MCPcopy Create free account
hub / github.com/dagger/dagger / hydratePulledDescriptor

Function hydratePulledDescriptor

engine/server/resolver/resolver.go:1068–1076  ·  view source on GitHub ↗
(desc ocispecs.Descriptor)

Source from the content-addressed store, hash-verified

1066}
1067
1068func hydratePulledDescriptor(desc ocispecs.Descriptor) ocispecs.Descriptor {
1069 if desc.Annotations != nil {
1070 desc.Annotations = maps.Clone(desc.Annotations)
1071 }
1072 if desc.URLs != nil {
1073 desc.URLs = slices.Clone(desc.URLs)
1074 }
1075 return desc
1076}
1077
1078func (r *Resolver) pushRegistryHosts(insecure bool, network NetworkConfig) docker.RegistryHosts {
1079 authorizers := newRegistryHostAuthorizerCache()

Callers 2

PullMethod · 0.85

Calls 1

CloneMethod · 0.65

Tested by

no test coverage detected