code: func (data *TLSData) ToStoreTLSData() *store.EndpointTLSData {
  	if data == nil {
  		return nil
  	}
  	result := store.EndpointTLSData{
  		Files: make(map[string][]byte),
  	}
  	if data.CA != nil {
  		result.Files[caKey] = data.CA
  	}
  	if data.Cert != nil {
  		result.Files[certKey] = data.Cert
  	}
  	if data.Key != nil {
  		result.Files[keyKey] = data.Key
  	}
  	return &result
  }
docs: // ToStoreTLSData converts TLSData to the store representation