github.com/Prakhar-Agarwal-byte/moby@v0.0.0-20231027092010-a14e3e8ab87e/api/server/router/distribution/backend.go (about) 1 package distribution // import "github.com/Prakhar-Agarwal-byte/moby/api/server/router/distribution" 2 3 import ( 4 "context" 5 6 "github.com/distribution/reference" 7 "github.com/docker/distribution" 8 "github.com/Prakhar-Agarwal-byte/moby/api/types/registry" 9 ) 10 11 // Backend is all the methods that need to be implemented 12 // to provide image specific functionality. 13 type Backend interface { 14 GetRepository(context.Context, reference.Named, *registry.AuthConfig) (distribution.Repository, error) 15 }