Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

c8d: implement GetRepository (split GetRepository from ImageService) #45285

Merged
merged 1 commit into from
Apr 11, 2023

Commits on Apr 9, 2023

  1. split GetRepository from ImageService

    The GetRepository method interacts directly with the registry, and does
    not depend on the snapshotter, but is used for two purposes;
    
    For the GET /distribution/{name:.*}/json route;
    https://github.com/moby/moby/blob/dd3b71d17c614f837c4bba18baed9fa2cb31f1a4/api/server/router/distribution/backend.go#L11-L15
    
    And to satisfy the "executor.ImageBackend" interface as used by Swarm;
    https://github.com/moby/moby/blob/58c027ac8ba19a3fa339c65274ea6704ccbec977/daemon/cluster/executor/backend.go#L77
    
    This patch removes the method from the ImageService interface, and instead
    implements it through an composite struct that satisfies both interfaces,
    and an ImageBackend() method is added to the daemon.
    
    Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
    
    remove GetRepository from ImageService
    
    Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
    thaJeztah committed Apr 9, 2023
    Configuration menu
    Copy the full SHA
    a5d46a1 View commit details
    Browse the repository at this point in the history