Fix typo: respository->repository

Signed-off-by: Jordan Liggitt <jliggitt@redhat.com>
This commit is contained in:
Jordan Liggitt
2015-05-19 13:25:08 -04:00
parent cde7b93b85
commit 32ed2d7df1
6 changed files with 8 additions and 8 deletions

View File

@@ -25,7 +25,7 @@ func NewInMemoryBlobDescriptorCacheProvider() BlobDescriptorCacheProvider {
}
func (imbdcp *inMemoryBlobDescriptorCacheProvider) RepositoryScoped(repo string) (distribution.BlobDescriptorService, error) {
if err := v2.ValidateRespositoryName(repo); err != nil {
if err := v2.ValidateRepositoryName(repo); err != nil {
return nil, err
}

View File

@@ -43,7 +43,7 @@ func NewRedisBlobDescriptorCacheProvider(pool *redis.Pool) BlobDescriptorCachePr
// RepositoryScoped returns the scoped cache.
func (rbds *redisBlobDescriptorService) RepositoryScoped(repo string) (distribution.BlobDescriptorService, error) {
if err := v2.ValidateRespositoryName(repo); err != nil {
if err := v2.ValidateRepositoryName(repo); err != nil {
return nil, err
}

View File

@@ -62,7 +62,7 @@ func (reg *registry) Scope() distribution.Scope {
// Instances should not be shared between goroutines but are cheap to
// allocate. In general, they should be request scoped.
func (reg *registry) Repository(ctx context.Context, name string) (distribution.Repository, error) {
if err := v2.ValidateRespositoryName(name); err != nil {
if err := v2.ValidateRepositoryName(name); err != nil {
return nil, distribution.ErrRepositoryNameInvalid{
Name: name,
Reason: err,