code: func LoadTLSData(s store.Reader, contextName, endpointName string) (*TLSData, error) {
  	tlsFiles, err := s.ListTLSFiles(contextName)
  	if err != nil {
  		return nil, errors.Wrapf(err, "failed to retrieve context tls files for context %q", contextName)
  	}
  	if epTLSFiles, ok := tlsFiles[endpointName]; ok {
  		var tlsData TLSData
  		for _, f := range epTLSFiles {
  			data, err := s.GetTLSData(contextName, endpointName, f)
  			if err != nil {
  				return nil, errors.Wrapf(err, "failed to retrieve context tls data for file %q of context %q", f, contextName)
  			}
  			switch f {
  			case caKey:
  				tlsData.CA = data
  			case certKey:
  				tlsData.Cert = data
  			case keyKey:
  				tlsData.Key = data
  			default:
  				logrus.Warnf("unknown file %s in context %s tls bundle", f, contextName)
  			}
  		}
  		return &tlsData, nil
  	}
  	return nil, nil
  }
docs: // LoadTLSData loads TLS data from the store