mirror of
https://github.com/mayflower/docker-ls.git
synced 2025-11-28 00:01:09 +03:00
26 lines
416 B
Go
26 lines
416 B
Go
package lib
|
|
|
|
type Repository interface {
|
|
Name() string
|
|
}
|
|
|
|
type RepositoryListResponse interface {
|
|
Repositories() <-chan Repository
|
|
LastError() 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
|
|
}
|