mirror of
https://github.com/containers/skopeo.git
synced 2025-08-06 09:03:54 +00:00
types: more on interfaces
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
parent
b97d7fc68f
commit
d8fbf24c25
@ -9,12 +9,18 @@ const (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type Registry interface {
|
type Registry interface {
|
||||||
Images() []Image
|
Repositories() []Repository
|
||||||
Image(ref string) Image // ref == image name w/o registry part
|
Repository(ref string) Repository
|
||||||
Lookup(term string) []Image // docker registry v1 only AFAICT, v2 can be built hacking with Images()
|
Lookup(term string) []Image // docker registry v1 only AFAICT, v2 can be built hacking with Images()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type Repository interface {
|
||||||
|
Images() []Image
|
||||||
|
Image(ref string) Image // ref == image name w/o registry part
|
||||||
|
}
|
||||||
|
|
||||||
type Image interface {
|
type Image interface {
|
||||||
|
// ref to repository?
|
||||||
Layers(layers ...string) error // configure download directory? Call it DownloadLayers?
|
Layers(layers ...string) error // configure download directory? Call it DownloadLayers?
|
||||||
Manifest(version string) (ImageManifest, error)
|
Manifest(version string) (ImageManifest, error)
|
||||||
RawManifest(version string) ([]byte, error)
|
RawManifest(version string) ([]byte, error)
|
||||||
|
Loading…
Reference in New Issue
Block a user