From db90724ab05add8cf882e62f2bed5338b82331f0 Mon Sep 17 00:00:00 2001 From: allencloud Date: Thu, 2 Jun 2016 13:31:13 +0800 Subject: [PATCH] fix typos Signed-off-by: allencloud --- ROADMAP.md | 2 +- docs/configuration.md | 2 +- docs/spec/api.md | 2 +- docs/spec/api.md.tmpl | 2 +- docs/spec/manifest-v2-2.md | 2 +- health/doc.go | 2 +- registry/auth/htpasswd/htpasswd.go | 2 +- registry/client/errors.go | 2 +- registry/handlers/api_test.go | 2 +- registry/handlers/helpers.go | 2 +- registry/registry.go | 2 +- registry/storage/driver/middleware/cloudfront/middleware.go | 2 +- registry/storage/filereader_test.go | 2 +- registry/storage/linkedblobstore.go | 2 +- 14 files changed, 14 insertions(+), 14 deletions(-) diff --git a/ROADMAP.md b/ROADMAP.md index 9cdfa36c..701127af 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -156,7 +156,7 @@ full and understand the problems behind deletes. While, at first glance, implementing deleting seems simple, there are a number mitigating factors that make many solutions not ideal or even pathological in the context of a registry. The following paragraph discuss the background and -approaches that could be applied to a arrive at a solution. +approaches that could be applied to arrive at a solution. The goal of deletes in any system is to remove unused or unneeded data. Only data requested for deletion should be removed and no other data. Removing diff --git a/docs/configuration.md b/docs/configuration.md index cd8bae16..96df2f0d 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -1032,7 +1032,7 @@ and proxy connections to the registry server. no - An array of absolute paths to a x509 CA file + An array of absolute paths to an x509 CA file diff --git a/docs/spec/api.md b/docs/spec/api.md index 56e9242c..aeb6bee9 100644 --- a/docs/spec/api.md +++ b/docs/spec/api.md @@ -706,7 +706,7 @@ the uploaded blob data. ###### Digest Parameter The "digest" parameter is designed as an opaque parameter to support -verification of a successful transfer. For example, a HTTP URI parameter +verification of a successful transfer. For example, an HTTP URI parameter might be as follows: ``` diff --git a/docs/spec/api.md.tmpl b/docs/spec/api.md.tmpl index 1a9e9f89..13a1fc2e 100644 --- a/docs/spec/api.md.tmpl +++ b/docs/spec/api.md.tmpl @@ -706,7 +706,7 @@ the uploaded blob data. ###### Digest Parameter The "digest" parameter is designed as an opaque parameter to support -verification of a successful transfer. For example, a HTTP URI parameter +verification of a successful transfer. For example, an HTTP URI parameter might be as follows: ``` diff --git a/docs/spec/manifest-v2-2.md b/docs/spec/manifest-v2-2.md index 56e974e2..fc705639 100644 --- a/docs/spec/manifest-v2-2.md +++ b/docs/spec/manifest-v2-2.md @@ -57,7 +57,7 @@ image manifest based on the Content-Type returned in the HTTP response. The manifests field contains a list of manifests for specific platforms. - Fields of a object in the manifests list are: + Fields of an object in the manifests list are: - **`mediaType`** *string* diff --git a/health/doc.go b/health/doc.go index 194b8a56..8c106b42 100644 --- a/health/doc.go +++ b/health/doc.go @@ -2,7 +2,7 @@ // The health package works expvar style. By importing the package the debug // server is getting a "/debug/health" endpoint that returns the current // status of the application. -// If there are no errors, "/debug/health" will return a HTTP 200 status, +// If there are no errors, "/debug/health" will return an HTTP 200 status, // together with an empty JSON reply "{}". If there are any checks // with errors, the JSON reply will include all the failed checks, and the // response will be have an HTTP 503 status. diff --git a/registry/auth/htpasswd/htpasswd.go b/registry/auth/htpasswd/htpasswd.go index 494ad0a7..8e4f6167 100644 --- a/registry/auth/htpasswd/htpasswd.go +++ b/registry/auth/htpasswd/htpasswd.go @@ -46,7 +46,7 @@ func (htpasswd *htpasswd) authenticateUser(username string, password string) err // parseHTPasswd parses the contents of htpasswd. This will read all the // entries in the file, whether or not they are needed. An error is returned -// if an syntax errors are encountered or if the reader fails. +// if a syntax errors are encountered or if the reader fails. func parseHTPasswd(rd io.Reader) (map[string][]byte, error) { entries := map[string][]byte{} scanner := bufio.NewScanner(rd) diff --git a/registry/client/errors.go b/registry/client/errors.go index adbaacf4..7606d0c9 100644 --- a/registry/client/errors.go +++ b/registry/client/errors.go @@ -11,7 +11,7 @@ import ( "github.com/docker/distribution/registry/api/errcode" ) -// ErrNoErrorsInBody is returned when a HTTP response body parses to an empty +// ErrNoErrorsInBody is returned when an HTTP response body parses to an empty // errcode.Errors slice. var ErrNoErrorsInBody = errors.New("no error details found in HTTP response body") diff --git a/registry/handlers/api_test.go b/registry/handlers/api_test.go index 01fd4f4c..076207ed 100644 --- a/registry/handlers/api_test.go +++ b/registry/handlers/api_test.go @@ -926,7 +926,7 @@ func testManifestAPISchema1(t *testing.T, env *testEnv, imageName reference.Name } // TODO(stevvooe): Add a test case where we take a mostly valid registry, - // tamper with the content and ensure that we get a unverified manifest + // tamper with the content and ensure that we get an unverified manifest // error. // Push 2 random layers diff --git a/registry/handlers/helpers.go b/registry/handlers/helpers.go index b56c1566..dac4f7a8 100644 --- a/registry/handlers/helpers.go +++ b/registry/handlers/helpers.go @@ -20,7 +20,7 @@ func closeResources(handler http.Handler, closers ...io.Closer) http.Handler { }) } -// copyFullPayload copies the payload of a HTTP request to destWriter. If it +// copyFullPayload copies the payload of an HTTP request to destWriter. If it // receives less content than expected, and the client disconnected during the // upload, it avoids sending a 400 error to keep the logs cleaner. func copyFullPayload(responseWriter http.ResponseWriter, r *http.Request, destWriter io.Writer, context ctxu.Context, action string, errSlice *errcode.Errors) error { diff --git a/registry/registry.go b/registry/registry.go index a1ba3b1a..aec6a030 100644 --- a/registry/registry.go +++ b/registry/registry.go @@ -267,7 +267,7 @@ func logLevel(level configuration.Loglevel) log.Level { return l } -// panicHandler add a HTTP handler to web app. The handler recover the happening +// panicHandler add an HTTP handler to web app. The handler recover the happening // panic. logrus.Panic transmits panic message to pre-config log hooks, which is // defined in config.yml. func panicHandler(handler http.Handler) http.Handler { diff --git a/registry/storage/driver/middleware/cloudfront/middleware.go b/registry/storage/driver/middleware/cloudfront/middleware.go index 9162c09d..b0618d1a 100644 --- a/registry/storage/driver/middleware/cloudfront/middleware.go +++ b/registry/storage/driver/middleware/cloudfront/middleware.go @@ -18,7 +18,7 @@ import ( storagemiddleware "github.com/docker/distribution/registry/storage/driver/middleware" ) -// cloudFrontStorageMiddleware provides an simple implementation of layerHandler that +// cloudFrontStorageMiddleware provides a simple implementation of layerHandler that // constructs temporary signed CloudFront URLs from the storagedriver layer URL, // then issues HTTP Temporary Redirects to this CloudFront content URL. type cloudFrontStorageMiddleware struct { diff --git a/registry/storage/filereader_test.go b/registry/storage/filereader_test.go index 774a864b..f43873b3 100644 --- a/registry/storage/filereader_test.go +++ b/registry/storage/filereader_test.go @@ -183,7 +183,7 @@ func TestFileReaderNonExistentFile(t *testing.T) { // conditions that can arise when reading a layer. func TestFileReaderErrors(t *testing.T) { // TODO(stevvooe): We need to cover error return types, driven by the - // errors returned via the HTTP API. For now, here is a incomplete list: + // errors returned via the HTTP API. For now, here is an incomplete list: // // 1. Layer Not Found: returned when layer is not found or access is // denied. diff --git a/registry/storage/linkedblobstore.go b/registry/storage/linkedblobstore.go index 68a347b4..d254bbb8 100644 --- a/registry/storage/linkedblobstore.go +++ b/registry/storage/linkedblobstore.go @@ -35,7 +35,7 @@ type linkedBlobStore struct { // control the repository blob link set to which the blob store // dispatches. This is required because manifest and layer blobs have not // yet been fully merged. At some point, this functionality should be - // removed an the blob links folder should be merged. The first entry is + // removed the blob links folder should be merged. The first entry is // treated as the "canonical" link location and will be used for writes. linkPathFns []linkPathFunc