diff options
author | Sebastiaan van Stijn <github@gone.nl> | 2022-02-26 12:58:41 +0100 |
---|---|---|
committer | Sebastiaan van Stijn <github@gone.nl> | 2022-03-17 17:09:11 +0100 |
commit | 6e3e657ea65b9c29535d678c6d9e03cfd997c6d4 (patch) | |
tree | 1252d52ca43ef7abef105ed38a4a61892c3dc2b0 /registry/service.go | |
parent | 4ebb18479d4b560950597ad94800a1aa4c22e572 (diff) | |
download | docker-6e3e657ea65b9c29535d678c6d9e03cfd997c6d4.tar.gz |
registry: un-export config.LoadXXX() functions
Un-export:
- config.LoadAllowNondistributableArtifacts()
- config.LoadInsecureRegistries()
- config.LoadMirrors()
The config type is already un-exported; this also un-exports these functions
to be explicit they're internal only.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Diffstat (limited to 'registry/service.go')
-rw-r--r-- | registry/service.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/registry/service.go b/registry/service.go index 7903918064..a8ea446e37 100644 --- a/registry/service.go +++ b/registry/service.go @@ -84,7 +84,7 @@ func (s *defaultService) LoadAllowNondistributableArtifacts(registries []string) s.mu.Lock() defer s.mu.Unlock() - return s.config.LoadAllowNondistributableArtifacts(registries) + return s.config.loadAllowNondistributableArtifacts(registries) } // LoadMirrors loads registry mirrors for Service @@ -92,7 +92,7 @@ func (s *defaultService) LoadMirrors(mirrors []string) error { s.mu.Lock() defer s.mu.Unlock() - return s.config.LoadMirrors(mirrors) + return s.config.loadMirrors(mirrors) } // LoadInsecureRegistries loads insecure registries for Service @@ -100,7 +100,7 @@ func (s *defaultService) LoadInsecureRegistries(registries []string) error { s.mu.Lock() defer s.mu.Unlock() - return s.config.LoadInsecureRegistries(registries) + return s.config.loadInsecureRegistries(registries) } // Auth contacts the public registry with the provided credentials, |