mirror of
https://github.com/mayflower/docker-ls.git
synced 2025-11-28 00:01:09 +03:00
Tag listing, fix potential deadlock if the response does not respect the page size.
This commit is contained in:
@@ -9,6 +9,17 @@ type RepositoryListResponse interface {
|
||||
LastError() error
|
||||
}
|
||||
|
||||
type RegistryApi interface {
|
||||
ListRepositories() (RepositoryListResponse, error)
|
||||
type Tag interface {
|
||||
Name() string
|
||||
RepositoryName() string
|
||||
}
|
||||
|
||||
type TagListResponse interface {
|
||||
Tags() <-chan Tag
|
||||
LastError() error
|
||||
}
|
||||
|
||||
type RegistryApi interface {
|
||||
ListRepositories() RepositoryListResponse
|
||||
ListTags(repositoryName string) TagListResponse
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user