github.com/pwn-term/docker@v0.0.0-20210616085119-6e977cce2565/moby/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, bool, error) 15 }