registry: remove unused Service.TLSConfig()
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
7cba4ffa30
commit
2f466a9f88
1 changed files with 0 additions and 10 deletions
|
@ -29,7 +29,6 @@ type Service interface {
|
|||
ResolveRepository(name reference.Named) (*RepositoryInfo, error)
|
||||
Search(ctx context.Context, term string, limit int, authConfig *types.AuthConfig, userAgent string, headers map[string][]string) (*registry.SearchResults, error)
|
||||
ServiceConfig() *registry.ServiceConfig
|
||||
TLSConfig(hostname string) (*tls.Config, error)
|
||||
LoadAllowNondistributableArtifacts([]string) error
|
||||
LoadMirrors([]string) error
|
||||
LoadInsecureRegistries([]string) error
|
||||
|
@ -221,15 +220,6 @@ type APIEndpoint struct {
|
|||
TLSConfig *tls.Config
|
||||
}
|
||||
|
||||
// TLSConfig constructs a client TLS configuration based on server defaults
|
||||
func (s *defaultService) TLSConfig(hostname string) (*tls.Config, error) {
|
||||
s.mu.RLock()
|
||||
secure := s.config.isSecureIndex(hostname)
|
||||
s.mu.RUnlock()
|
||||
|
||||
return newTLSConfig(hostname, secure)
|
||||
}
|
||||
|
||||
// LookupPullEndpoints creates a list of v2 endpoints to try to pull from, in order of preference.
|
||||
// It gives preference to mirrors over the actual registry, and HTTPS over plain HTTP.
|
||||
func (s *defaultService) LookupPullEndpoints(hostname string) (endpoints []APIEndpoint, err error) {
|
||||
|
|
Loading…
Reference in a new issue