MCPcopy Create free account
hub / github.com/containers/image / loadRegistryConfiguration

Function loadRegistryConfiguration

docker/registries_d.go:80–84  ·  view source on GitHub ↗

loadRegistryConfiguration returns a registryConfiguration appropriate for sys.

(sys *types.SystemContext)

Source from the content-addressed store, hash-verified

78
79// loadRegistryConfiguration returns a registryConfiguration appropriate for sys.
80func loadRegistryConfiguration(sys *types.SystemContext) (*registryConfiguration, error) {
81 dirPath := registriesDirPath(sys)
82 logrus.Debugf(`Using registries.d directory %s`, dirPath)
83 return loadAndMergeConfig(dirPath)
84}
85
86// registriesDirPath returns a path to registries.d
87func registriesDirPath(sys *types.SystemContext) string {

Callers 6

SignatureStorageBaseURLFunction · 0.85
newImageDestinationFunction · 0.85
newImageSourceFunction · 0.85
deleteImageFunction · 0.85
GetRepositoryTagsFunction · 0.85
GetDigestFunction · 0.85

Calls 2

registriesDirPathFunction · 0.85
loadAndMergeConfigFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…