backend.go 465 B

123456789101112131415
  1. package distribution // import "github.com/docker/docker/api/server/router/distribution"
  2. import (
  3. "context"
  4. "github.com/distribution/reference"
  5. "github.com/docker/distribution"
  6. "github.com/docker/docker/api/types/registry"
  7. )
  8. // Backend is all the methods that need to be implemented
  9. // to provide image specific functionality.
  10. type Backend interface {
  11. GetRepository(context.Context, reference.Named, *registry.AuthConfig) (distribution.Repository, error)
  12. }