diff options
author | Sebastiaan van Stijn <github@gone.nl> | 2022-02-27 13:38:22 +0100 |
---|---|---|
committer | Sebastiaan van Stijn <github@gone.nl> | 2022-03-17 17:07:56 +0100 |
commit | d9261561f997f299fcc6a1838a358f70a35a15ec (patch) | |
tree | 900a40331d983ff6ed9d16ea2c363052e4e9f9a4 /registry | |
parent | 746c51b54f0d891333016012c3d04e6deb724757 (diff) | |
download | docker-d9261561f997f299fcc6a1838a358f70a35a15ec.tar.gz |
registry: add TODO for removing ParseSearchIndexInfo()
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Diffstat (limited to 'registry')
-rw-r--r-- | registry/config.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/registry/config.go b/registry/config.go index 977b0fd024..a87205a33f 100644 --- a/registry/config.go +++ b/registry/config.go @@ -432,6 +432,11 @@ func ParseRepositoryInfo(reposName reference.Named) (*RepositoryInfo, error) { } // 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) { indexName, _ := splitReposSearchTerm(reposName) |