backend.go 414 B

1234567891011121314
  1. package distribution
  2. import (
  3. "github.com/docker/distribution"
  4. "github.com/docker/distribution/reference"
  5. "github.com/docker/docker/api/types"
  6. "golang.org/x/net/context"
  7. )
  8. // Backend is all the methods that need to be implemented
  9. // to provide image specific functionality.
  10. type Backend interface {
  11. GetRepository(context.Context, reference.Named, *types.AuthConfig) (distribution.Repository, bool, error)
  12. }