2022-07-18 06:51:49 -04:00
|
|
|
package containerd
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
2022-08-10 09:22:32 -04:00
|
|
|
"errors"
|
2022-07-18 06:51:49 -04:00
|
|
|
|
|
|
|
"github.com/docker/docker/api/types/filters"
|
2022-07-29 09:36:39 -04:00
|
|
|
"github.com/docker/docker/api/types/registry"
|
2022-08-10 09:22:32 -04:00
|
|
|
"github.com/docker/docker/errdefs"
|
2022-07-18 06:51:49 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
// SearchRegistryForImages queries the registry for images matching
|
|
|
|
// term. authConfig is used to login.
|
|
|
|
//
|
|
|
|
// TODO: this could be implemented in a registry service instead of the image
|
|
|
|
// service.
|
2022-07-29 09:36:39 -04:00
|
|
|
func (i *ImageService) SearchRegistryForImages(ctx context.Context, searchFilters filters.Args, term string, limit int, authConfig *registry.AuthConfig, metaHeaders map[string][]string) (*registry.SearchResults, error) {
|
2022-08-10 09:22:32 -04:00
|
|
|
return nil, errdefs.NotImplemented(errors.New("not implemented"))
|
2022-07-18 06:51:49 -04:00
|
|
|
}
|