(desc ocispecs.Descriptor)
| 1066 | } |
| 1067 | |
| 1068 | func 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 | |
| 1078 | func (r *Resolver) pushRegistryHosts(insecure bool, network NetworkConfig) docker.RegistryHosts { |
| 1079 | authorizers := newRegistryHostAuthorizerCache() |
no test coverage detected