1
0
mirror of https://github.com/mayflower/docker-ls.git synced 2025-11-29 12:03:05 +03:00
Files
docker-ls/lib/api_interface.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
}