Aaron Lehmann
afd61ce8f2
Vendor updated version of docker/distribution
...
This updates the vendored docker/distribution to the current master
branch.
Note the following changes:
- The manifest package was split into manifest/schema1. Most references
to the manifest package in the engine needed to be updated to use
schema1 instead.
- Validation functions in api/v2 were replaced by the
distribution/reference package. The engine code has been updated to
use the reference package for validation where necessary. A future PR
will change the engine to use the types defined in
distribution/reference more comprehensively.
- The reference package explicitly allows double _ characters in
repository names. registry_test.go was updated for this.
- TestPullFailsWithAlteredManifest was corrupting the manifest JSON, now
that the schema1 package unmarshals the correct payload. The test is
being changed to modify the JSON without affecting its length, which
allows the pull to succeed to the point where digest validation
happens.
Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
2015-11-02 12:40:18 -08:00
Stephen J Day
854fa0a4dd
registry/storage: close filereader after allocation
...
Signed-off-by: Stephen J Day <stephen.day@docker.com>
2015-11-02 11:55:11 -08:00
Stephen J Day
46dd057f5c
registry/storage: close filereader after allocation
...
Signed-off-by: Stephen J Day <stephen.day@docker.com>
2015-11-02 11:55:11 -08:00
Richard Scothern
c6c9194e9c
Merge pull request #1148 from aaronlehmann/withname-check-length
...
Check length of input in WithName
2015-11-02 11:54:34 -08:00
Aaron Lehmann
073bd89262
Check length of input in WithName
...
There is a constraint on the length of the name in a reference, so
WithName should be checking this instead of potentially creating a
reference that doesn't comply with the rules.
Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
2015-11-02 09:12:21 -08:00
Alexander Morozov
94913b8f7f
Fix go vet warnings
...
Signed-off-by: Alexander Morozov <lk4d4@docker.com>
2015-11-02 08:28:34 -08:00
Richard Scothern
ef17db8d73
Merge pull request #1122 from RichardScothern/scheduler-coalesce
...
Buffer writes to scheduler state file.
2015-10-30 13:43:07 -07:00
Richard Scothern
326ec6c121
Merge pull request #1139 from aaronlehmann/reference-withtag-fix
...
Use correct regexp in reference.WithTag
2015-10-29 15:25:18 -07:00
Richard Scothern
00f02b5fbc
Buffer writing the scheduler entry state to disk by periodically checking for
...
changes to the entries index and saving it to the filesystem.
Signed-off-by: Richard Scothern <richard.scothern@gmail.com>
2015-10-29 11:35:52 -07:00
Richard Scothern
33428c37e1
Buffer writing the scheduler entry state to disk by periodically checking for
...
changes to the entries index and saving it to the filesystem.
Signed-off-by: Richard Scothern <richard.scothern@gmail.com>
2015-10-29 11:35:52 -07:00
Richard Scothern
a31e93e1c4
Merge pull request #756 from aibaars/storage-gcs
...
Storage driver for Google Cloud Storage
2015-10-29 10:41:17 -07:00
Richard Scothern
9e8aaf7b40
Merge pull request #756 from aibaars/storage-gcs
...
Storage driver for Google Cloud Storage
2015-10-29 10:41:17 -07:00
Aaron Lehmann
985ee759e7
Use correct regexp in reference.WithTag
...
This was using a different regexp from the intended one. This meant that
tags with uppercase characters were not accepted.
Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
2015-10-28 18:22:00 -07:00
Richard Scothern
cbf1f0797c
Merge pull request #1096 from aaronlehmann/simplify-proxy-scheduler
...
Simplify proxy scheduler
2015-10-28 13:23:00 -07:00
Richard Scothern
987a69dd05
Merge pull request #1096 from aaronlehmann/simplify-proxy-scheduler
...
Simplify proxy scheduler
2015-10-28 13:23:00 -07:00
Arthur Baars
98ad17f757
Storage driver for: Google Cloud Storage (gcs)
...
Signed-off-by: Arthur Baars <arthur@semmle.com>
2015-10-28 20:21:56 +00:00
Arthur Baars
59784ecdd0
Storage driver for: Google Cloud Storage (gcs)
...
Signed-off-by: Arthur Baars <arthur@semmle.com>
2015-10-28 20:21:56 +00:00
Arthur Baars
41e71e9a46
Google Cloud Storage (gcs) dependencies (2)
...
Add files of new dependencies to Godeps/_workspace
Signed-off-by: Arthur Baars <arthur@semmle.com>
2015-10-28 11:26:43 +00:00
Arthur Baars
95db61e97f
Google Cloud Storage (gcs) dependencies (1)
...
Add new dependencies to Godeps/Godeps.json
Signed-off-by: Arthur Baars <arthur@semmle.com>
2015-10-28 11:26:39 +00:00
Olivier Gambier
731c43e3db
Merge pull request #1136 from RichardScothern/update-roadmap
...
Update distribution roadmap.
2015-10-27 20:39:52 -07:00
Brian Goff
24de26a805
Revert "dockerversion placeholder for library-import"
...
This reverts commit c2d5c29437
.
Commit caused issues on systems with case-insensitive filesystems.
Revert for now
Signed-off-by: Brian Goff <cpuguy83@gmail.com>
2015-10-27 21:23:53 -04:00
Richard Scothern
183d144520
Update distribution roadmap.
...
Update pull through cache status.
Add section for metadata storage.
Signed-off-by: Richard Scothern <richard.scothern@gmail.com>
2015-10-27 17:20:49 -07:00
Stephen Day
2d23e77284
Merge pull request #1047 from mattmoor/expires_in_proposal
...
Add `expires_in` and `issued_at` to the auth spec.
2015-10-27 14:29:08 -07:00
Stephen Day
6bcd8a1dec
Merge pull request #1099 from RichardScothern/go-version
...
Add go version to logger output
2015-10-27 14:19:43 -07:00
Vincent Demeester
c2d5c29437
dockerversion placeholder for library-import
...
- Move autogen/dockerversion to version
- Update autogen and "builds" to use this package and a build flag
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
2015-10-27 20:36:07 +01:00
Matt Moore
b38b98c8a8
Add expires_in
and issued_at
to the auth spec.
...
This extends the specification for the Bearer token response to include
information pertaining to when an issued Bearer token will expire.
This also allows the client to accept `access_token` as an alias for `token`.
Signed-off-by: Matt Moore <mattmoor@google.com>
2015-10-27 11:05:33 -07:00
Matt Moore
0c7cd3fcf8
Add expires_in
and issued_at
to the auth spec.
...
This extends the specification for the Bearer token response to include
information pertaining to when an issued Bearer token will expire.
This also allows the client to accept `access_token` as an alias for `token`.
Signed-off-by: Matt Moore <mattmoor@google.com>
2015-10-27 11:05:33 -07:00
Rusty Conover
9293e3db11
Fix failing test case
...
When building a URL don't include path components in the host parameter.
Closes #1124
Signed-off-by: Rusty Conover <rusty@luckydinosaur.com>
2015-10-25 13:03:22 -04:00
Rusty Conover
5f2205981b
Fix failing test case
...
When building a URL don't include path components in the host parameter.
Closes #1124
Signed-off-by: Rusty Conover <rusty@luckydinosaur.com>
2015-10-25 13:03:22 -04:00
Richard Scothern
1c5f8166e4
Merge pull request #1121 from thaJeztah/fix-doc-emoji
...
Docs: replace emoji with regular warning
2015-10-22 17:13:33 -07:00
Sebastiaan van Stijn
bf6ca6cb53
Docs: replace emoji with regular warning
...
The docs don't render emoji, so replaced the `⚠️ ` with
a `**Warning**:` to keep the formatting consisten with
`**Note**:` used in other parts of the docs.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2015-10-22 15:59:48 -07:00
Richard Scothern
a266f99418
Merge pull request #1095 from mrwacky42/api-version-annotated
...
Add annotated example for adding header; +spelling
2015-10-22 14:04:32 -07:00
Richard Scothern
e569236f1e
Add go version to logger output
...
Signed-off-by: Richard Scothern <richard.scothern@gmail.com>
2015-10-22 10:11:25 -07:00
Olivier Gambier
24a3f92616
Merge pull request #1118 from SvenDowideit/stop-linking-when-rendering-to-html
...
Prevent md->html link generation
2015-10-22 09:34:09 -07:00
Sven Dowideit
a5040860f2
Prevent md->html link generation
...
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2015-10-22 17:27:21 +10:00
Stephen Day
8cc790cccf
Merge pull request #1098 from denverdino/master
...
Redundant digest verification in validateBlob when pushing a new layer
2015-10-21 14:50:18 -07:00
Stephen Day
e5d9837970
Merge pull request #1098 from denverdino/master
...
Redundant digest verification in validateBlob when pushing a new layer
2015-10-21 14:50:18 -07:00
Stephen Day
cc69dcca8d
Merge pull request #1115 from tianon/fix-auth-servehttp-comment
...
Update "type auth.Challenge" comment example code
2015-10-21 12:56:14 -07:00
Stephen Day
e6bb0aa7c0
Merge pull request #1115 from tianon/fix-auth-servehttp-comment
...
Update "type auth.Challenge" comment example code
2015-10-21 12:56:14 -07:00
Tianon Gravi
8263cdeb57
Update "type auth.Challenge" comment example code
...
This interface was changed in 4a2300aaa9
, but the comment wasn't ever updated to match.
Signed-off-by: Andrew "Tianon" Page <admwiggin@gmail.com>
2015-10-21 11:54:13 -07:00
Tianon Gravi
39d47e8eea
Update "type auth.Challenge" comment example code
...
This interface was changed in a0fdfb9d4d
, but the comment wasn't ever updated to match.
Signed-off-by: Andrew "Tianon" Page <admwiggin@gmail.com>
2015-10-21 11:54:13 -07:00
Richard Scothern
8806306f3d
Merge pull request #1111 from aaronlehmann/golint-comments
...
Correct two golint comment issues
2015-10-20 09:53:14 -07:00
Richard Scothern
7e9c832524
Merge pull request #1111 from aaronlehmann/golint-comments
...
Correct two golint comment issues
2015-10-20 09:53:14 -07:00
Aaron Lehmann
fc5ee720d1
Correct two golint comment issues
...
Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
2015-10-19 16:42:12 -07:00
Aaron Lehmann
5608db616c
Correct two golint comment issues
...
Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
2015-10-19 16:42:12 -07:00
Olivier Gambier
21b6f54796
Merge pull request #1110 from RichardScothern/env-var-clarification
...
Clearer documentation around environment variable overrides
2015-10-19 14:53:20 -07:00
Richard Scothern
f9317483d3
Clearer documentation around environment variable overrides
...
Signed-off-by: Richard Scothern <richard.scothern@gmail.com>
2015-10-19 14:52:08 -07:00
Richard Scothern
0ce983b4e8
Merge pull request #1006 from RichardScothern/proxy-serialize
...
Fix a race condition in pull through cache population
2015-10-16 17:13:26 -07:00
Richard Scothern
d4910831a3
Merge pull request #1006 from RichardScothern/proxy-serialize
...
Fix a race condition in pull through cache population
2015-10-16 17:13:26 -07:00
Olivier Gambier
f6d22717e7
Merge pull request #1103 from moxiegirl/hugo-15-retooling
...
Updating for Hugo 15 patch
2015-10-16 13:51:18 -07:00