2018-02-05 16:05:59 -05:00
|
|
|
package distribution // import "github.com/docker/docker/api/server/router/distribution"
|
2017-05-01 19:17:35 -04:00
|
|
|
|
|
|
|
import (
|
2018-04-19 18:30:59 -04:00
|
|
|
"context"
|
|
|
|
|
2017-05-01 19:17:35 -04:00
|
|
|
"github.com/docker/distribution"
|
|
|
|
"github.com/docker/distribution/reference"
|
|
|
|
"github.com/docker/docker/api/types"
|
|
|
|
)
|
|
|
|
|
|
|
|
// Backend is all the methods that need to be implemented
|
|
|
|
// to provide image specific functionality.
|
|
|
|
type Backend interface {
|
|
|
|
GetRepository(context.Context, reference.Named, *types.AuthConfig) (distribution.Repository, bool, error)
|
|
|
|
}
|