github.com/jfrazelle/docker@v1.1.2-0.20210712172922-bf78e25fe508/api/server/router/distribution/backend.go (about) 1 package distribution // import "github.com/docker/docker/api/server/router/distribution" 2 3 import ( 4 "context" 5 6 "github.com/docker/distribution" 7 "github.com/docker/distribution/reference" 8 "github.com/docker/docker/api/types" 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, *types.AuthConfig) (distribution.Repository, error) 15 }