mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #43829 from thaJeztah/image_service_deadcode
daemon: ImageService: remove unused Map(), LookupImage()
This commit is contained in:
commit
6b70975efc
3 changed files with 0 additions and 16 deletions
|
@ -113,11 +113,6 @@ func (cs *ImageService) GetLayerFolders(img *image.Image, rwLayer layer.RWLayer)
|
|||
panic("not implemented")
|
||||
}
|
||||
|
||||
// Map returns a map of all images in the ImageStore.
|
||||
func (cs *ImageService) Map() map[image.ID]*image.Image {
|
||||
panic("not implemented")
|
||||
}
|
||||
|
||||
// GetLayerByID returns a layer by ID
|
||||
// called from daemon.go Daemon.restore(), and Daemon.containerExport().
|
||||
func (cs *ImageService) GetLayerByID(string) (layer.RWLayer, error) {
|
||||
|
@ -264,11 +259,6 @@ func (cs *ImageService) LoadImage(inTar io.ReadCloser, outStream io.Writer, quie
|
|||
panic("not implemented")
|
||||
}
|
||||
|
||||
// LookupImage is not implemented.
|
||||
func (cs *ImageService) LookupImage(ctx context.Context, name string) (*types.ImageInspect, error) {
|
||||
panic("not implemented")
|
||||
}
|
||||
|
||||
// PushImage initiates a push operation on the repository named localName.
|
||||
func (cs *ImageService) PushImage(ctx context.Context, image, tag string, metaHeaders map[string][]string, authConfig *types.AuthConfig, outStream io.Writer) error {
|
||||
panic("not implemented")
|
||||
|
|
|
@ -68,7 +68,6 @@ type ImageService interface {
|
|||
// Other
|
||||
|
||||
GetRepository(ctx context.Context, ref reference.Named, authConfig *types.AuthConfig) (distribution.Repository, error)
|
||||
Map() map[image.ID]*image.Image
|
||||
SearchRegistryForImages(ctx context.Context, searchFilters filters.Args, term string, limit int, authConfig *types.AuthConfig, headers map[string][]string) (*registry.SearchResults, error)
|
||||
DistributionServices() images.DistributionServices
|
||||
Children(id image.ID) []image.ID
|
||||
|
|
|
@ -33,11 +33,6 @@ func (r byCreated) Len() int { return len(r) }
|
|||
func (r byCreated) Swap(i, j int) { r[i], r[j] = r[j], r[i] }
|
||||
func (r byCreated) Less(i, j int) bool { return r[i].Created < r[j].Created }
|
||||
|
||||
// Map returns a map of all images in the ImageStore
|
||||
func (i *ImageService) Map() map[image.ID]*image.Image {
|
||||
return i.imageStore.Map()
|
||||
}
|
||||
|
||||
// Images returns a filtered list of images.
|
||||
func (i *ImageService) Images(_ context.Context, opts types.ImageListOptions) ([]*types.ImageSummary, error) {
|
||||
if err := opts.Filters.Validate(acceptedImageFilterTags); err != nil {
|
||||
|
|
Loading…
Reference in a new issue