github.com/cookieai-jar/moby@v17.12.1-ce-rc2+incompatible/api/server/router/distribution/backend.go (about) 1 package distribution 2 3 import ( 4 "github.com/docker/distribution" 5 "github.com/docker/distribution/reference" 6 "github.com/docker/docker/api/types" 7 "golang.org/x/net/context" 8 ) 9 10 // Backend is all the methods that need to be implemented 11 // to provide image specific functionality. 12 type Backend interface { 13 GetRepository(context.Context, reference.Named, *types.AuthConfig) (distribution.Repository, bool, error) 14 }