github.com/docker/docker@v299999999.0.0-20200612211812-aaf470eca7b5+incompatible/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  }