Ver Fonte

registry: add TODO for removing ParseSearchIndexInfo()

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Sebastiaan van Stijn há 3 anos atrás
pai
commit
d9261561f9
1 ficheiros alterados com 5 adições e 0 exclusões
  1. 5 0
      registry/config.go

+ 5 - 0
registry/config.go

@@ -432,6 +432,11 @@ func ParseRepositoryInfo(reposName reference.Named) (*RepositoryInfo, error) {
 }
 }
 
 
 // ParseSearchIndexInfo will use repository name to get back an indexInfo.
 // ParseSearchIndexInfo will use repository name to get back an indexInfo.
+//
+// TODO(thaJeztah) this function is only used by the CLI, and used to get
+// information of the registry (to provide credentials if needed). We should
+// move this function (or equivalent) to the CLI, as it's doing too much just
+// for that.
 func ParseSearchIndexInfo(reposName string) (*registrytypes.IndexInfo, error) {
 func ParseSearchIndexInfo(reposName string) (*registrytypes.IndexInfo, error) {
 	indexName, _ := splitReposSearchTerm(reposName)
 	indexName, _ := splitReposSearchTerm(reposName)