From 6e3e657ea65b9c29535d678c6d9e03cfd997c6d4 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Sat, 26 Feb 2022 12:58:41 +0100 Subject: 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 --- registry/service.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'registry/service.go') 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, -- cgit v1.2.1