@@ -24,7 +24,7 @@ func (n *registry) Scope() distribution.Scope {
24
24
25
25
// Repository returns an instance of repository for the given name.
26
26
func (n * registry ) Repository (_ context.Context , name reference.Named ) (distribution.Repository , error ) {
27
- return newRepository (n .client , name ), nil
27
+ return newRepository (n .client . client , name ), nil
28
28
}
29
29
30
30
// Repositories returns a list of repositories.
@@ -35,13 +35,15 @@ func (n *registry) Repositories(ctx context.Context, repos []string, last string
35
35
}
36
36
37
37
// Blobs returns a blob enumerator.
38
+ // TODO: return blobStore
38
39
func (n * registry ) Blobs () distribution.BlobEnumerator {
39
40
return & blobEnumerator {
40
41
client : n .client ,
41
42
}
42
43
}
43
44
44
45
// BlobStatter returns a blob statter.
46
+ // TODO: return blobStore
45
47
func (n * registry ) BlobStatter () distribution.BlobStatter {
46
48
return & blobStatter {
47
49
client : n .client ,
@@ -69,7 +71,8 @@ func (s *blobStatter) Stat(ctx context.Context, dgst digest.Digest) (distributio
69
71
ctx = s .client .Context (ctx )
70
72
info , err := s .client .ContentStore ().Info (ctx , dgst )
71
73
if err != nil {
72
- return distribution.Descriptor {}, convertError (err )
74
+ // TODO: use blob store Stat
75
+ return distribution.Descriptor {}, err
73
76
}
74
77
75
78
return distribution.Descriptor {
0 commit comments