1
0
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:
Christian Speckner
2016-02-16 13:03:26 +01:00
parent 63ae11c6e0
commit f613ce4501
9 changed files with 324 additions and 92 deletions

View File

@@ -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
}