Richard Scothern
7378e21678
Merge pull request #1332 from RichardScothern/gcs-params
...
Change the parameters to the GCS drivers to allow CircleCI testing.
2016-01-14 15:50:09 -08:00
Richard Scothern
05dc6404fd
Merge pull request #1332 from RichardScothern/gcs-params
...
Change the parameters to the GCS drivers to allow CircleCI testing.
2016-01-14 15:50:09 -08:00
Richard Scothern
1cdc683358
Merge pull request #1352 from tpounds/use-go-1.5.3
...
Use Go 1.5.3
2016-01-14 11:17:54 -08:00
Derek McGowan
cb08de17d7
Merge pull request #1351 from BrianBland/splitBlobCreateOptions
...
Splits up blob create options definitions to be package-specific
2016-01-14 11:10:54 -08:00
Brian Bland
67aef89bc0
Splits up blob create options definitions to be package-specific
...
Redefines privately in both storage and client packages
Signed-off-by: Brian Bland <brian.bland@docker.com>
2016-01-14 10:47:33 -08:00
Brian Bland
8c5a6c13c0
Splits up blob create options definitions to be package-specific
...
Redefines privately in both storage and client packages
Signed-off-by: Brian Bland <brian.bland@docker.com>
2016-01-14 10:47:33 -08:00
Trevor Pounds
e5ac03f945
Update to Go 1.5.3.
...
Signed-off-by: Trevor Pounds <trevor.pounds@gmail.com>
2016-01-14 10:40:20 -08:00
Richard Scothern
df6cdb7bb6
Merge pull request #1347 from aaronlehmann/go-153
...
Upgrade CI to go 1.5.3
2016-01-14 10:31:45 -08:00
Brian Bland
e90578b27d
Merge pull request #1348 from BrianBland/fixCrossRepoBlobMount
...
Fixes cross-repo blob mounting in the BlobUploadHandler
2016-01-14 09:44:30 -08:00
Brian Bland
2a9849e552
Merge pull request #1348 from BrianBland/fixCrossRepoBlobMount
...
Fixes cross-repo blob mounting in the BlobUploadHandler
2016-01-14 09:44:30 -08:00
Brian Bland
e0d4a45c93
Fixes cross-repo blob mounting in the BlobUploadHandler
...
Accidentally checked for err != nil instead of err == nil :/
Also now ensures that only a non-nil option is appended to the create
options slice
Signed-off-by: Brian Bland <brian.bland@docker.com>
2016-01-13 19:21:45 -08:00
Brian Bland
3ef917c269
Fixes cross-repo blob mounting in the BlobUploadHandler
...
Accidentally checked for err != nil instead of err == nil :/
Also now ensures that only a non-nil option is appended to the create
options slice
Signed-off-by: Brian Bland <brian.bland@docker.com>
2016-01-13 19:21:45 -08:00
Aaron Lehmann
050fcb7dbb
Upgrade CI to go 1.5.3
...
Go 1.5.0 has some stack pointer bugs. This may have been causing some CI
failures. Upgrade to a newer version.
Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
2016-01-13 18:25:20 -08:00
Richard Scothern
81dbebc7d3
Change the parameters to the GCS drivers to allow CircleCI testing.
...
Remove the requirement of file system access to run GCS unit tests. Deconstruct
the input parameters to take the private key and email which can be specified on
the build system via environment variables.
Signed-off-by: Richard Scothern <richard.scothern@gmail.com>
2016-01-13 18:00:59 -08:00
Richard Scothern
5d35fa34c1
Change the parameters to the GCS drivers to allow CircleCI testing.
...
Remove the requirement of file system access to run GCS unit tests. Deconstruct
the input parameters to take the private key and email which can be specified on
the build system via environment variables.
Signed-off-by: Richard Scothern <richard.scothern@gmail.com>
2016-01-13 18:00:59 -08:00
Richard Scothern
b38b9ba385
Merge pull request #1344 from BrianBland/blobCreateWithOptions
...
Adds functional options arguments to the Blobs Create method, remove Mount operation
2016-01-13 17:35:49 -08:00
Richard Scothern
5120357906
Merge pull request #1344 from BrianBland/blobCreateWithOptions
...
Adds functional options arguments to the Blobs Create method, remove Mount operation
2016-01-13 17:35:49 -08:00
Brian Bland
36023174db
Adds functional options arguments to the Blobs Create method
...
Removes the Mount operation and instead implements this behavior as part
of Create a From option is provided, which in turn returns a rich
ErrBlobMounted indicating that a blob upload session was not initiated,
but instead the blob was mounted from another repository
Signed-off-by: Brian Bland <brian.bland@docker.com>
2016-01-13 16:42:59 -08:00
Brian Bland
ce88d8a6f4
Adds functional options arguments to the Blobs Create method
...
Removes the Mount operation and instead implements this behavior as part
of Create a From option is provided, which in turn returns a rich
ErrBlobMounted indicating that a blob upload session was not initiated,
but instead the blob was mounted from another repository
Signed-off-by: Brian Bland <brian.bland@docker.com>
2016-01-13 16:42:59 -08:00
Richard Scothern
4378e1aa85
Merge pull request #1345 from BrianBland/fixErrorCodesInAPITemplate
...
Fixes error codes in the API spec template
2016-01-13 14:55:59 -08:00
Brian Bland
ac03070245
Fixes error codes in the API spec template
...
Uses UPPER_UNDERSCORE_CASE instead of the nice error message format
added in #911
Signed-off-by: Brian Bland <brian.bland@docker.com>
2016-01-13 11:53:40 -08:00
Richard Scothern
39ff320b82
Merge pull request #1335 from RichardScothern/fix-build
...
Fix manifest API unit tests
2016-01-11 14:17:36 -08:00
Richard Scothern
66b492e69f
Merge pull request #1335 from RichardScothern/fix-build
...
Fix manifest API unit tests
2016-01-11 14:17:36 -08:00
Richard Scothern
3ea0d70896
Fix manifest API unit tests
...
Signed-off-by: Richard Scothern <richard.scothern@gmail.com>
2016-01-11 12:52:21 -08:00
Richard Scothern
93b65847ca
Fix manifest API unit tests
...
Signed-off-by: Richard Scothern <richard.scothern@gmail.com>
2016-01-11 12:52:21 -08:00
Richard Scothern
3a1220de01
Merge pull request #1319 from RichardScothern/update-tags
...
Remove tags referencing deleted manifests.
2016-01-11 11:33:22 -08:00
Richard Scothern
b7aee20b81
Merge pull request #1319 from RichardScothern/update-tags
...
Remove tags referencing deleted manifests.
2016-01-11 11:33:22 -08:00
Richard Scothern
93d9070c8b
Merge pull request #1269 from BrianBland/crossRepositoryPush
...
Adds cross-repository blob mounting behavior
2016-01-08 14:37:00 -08:00
Richard Scothern
5fe3d68e9c
Merge pull request #1269 from BrianBland/crossRepositoryPush
...
Adds cross-repository blob mounting behavior
2016-01-08 14:37:00 -08:00
Brian Bland
613cfc861d
Fires a new Mount event when blobs are cross-repo mounted
...
Adds an optional "fromRepository" field to the event target
Signed-off-by: Brian Bland <brian.bland@docker.com>
2016-01-08 13:53:30 -08:00
Brian Bland
44d95e5841
Allows token authentication handler to request additional scopes
...
When an auth request provides the "from" query parameter, the token
handler will add a "pull" scope for the provided repository, refreshing
the token if the overall scope has increased
Signed-off-by: Brian Bland <brian.bland@docker.com>
2016-01-08 13:53:23 -08:00
Brian Bland
3a35a2d953
Allows token authentication handler to request additional scopes
...
When an auth request provides the "from" query parameter, the token
handler will add a "pull" scope for the provided repository, refreshing
the token if the overall scope has increased
Signed-off-by: Brian Bland <brian.bland@docker.com>
2016-01-08 13:53:23 -08:00
Brian Bland
41e30f626b
Adds cross-repository blob mounting behavior
...
Extends blob upload POST endpoint to support mount and from query
parameters as described in #634
Signed-off-by: Brian Bland <brian.bland@docker.com>
2016-01-08 13:53:18 -08:00
Brian Bland
5df21570a7
Adds cross-repository blob mounting behavior
...
Extends blob upload POST endpoint to support mount and from query
parameters as described in #634
Signed-off-by: Brian Bland <brian.bland@docker.com>
2016-01-08 13:53:18 -08:00
Richard Scothern
cc0b6b86ea
Merge pull request #1276 from denverdino/oss-test
...
Support large layer for OSS driver
2016-01-08 13:26:09 -08:00
Richard Scothern
e5e0e2cc2a
Merge pull request #1276 from denverdino/oss-test
...
Support large layer for OSS driver
2016-01-08 13:26:09 -08:00
Stephen Day
c426367881
Merge pull request #1281 from aaronlehmann/new-manifest
...
Implement schema2 manifest formats
2016-01-07 17:19:56 -08:00
Stephen Day
a7ae88da45
Merge pull request #1281 from aaronlehmann/new-manifest
...
Implement schema2 manifest formats
2016-01-07 17:19:56 -08:00
Stephen Day
98fecde1c9
Merge pull request #911 from stevvooe/consistent-error-string
...
More consistent return from ErrorCode.Error()
2016-01-07 17:06:12 -08:00
Stephen Day
5ebf6391a7
Merge pull request #911 from stevvooe/consistent-error-string
...
More consistent return from ErrorCode.Error()
2016-01-07 17:06:12 -08:00
Aaron Lehmann
bbabb55ccb
Move MediaType into manifest.Versioned
...
This makes content type sniffing cleaner. The document just needs to be
decoded into a manifest.Versioned structure. It's no longer a two-step
process.
Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
2016-01-07 15:26:27 -08:00
Aaron Lehmann
6d17423a6d
Move MediaType into manifest.Versioned
...
This makes content type sniffing cleaner. The document just needs to be
decoded into a manifest.Versioned structure. It's no longer a two-step
process.
Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
2016-01-07 15:26:27 -08:00
Aaron Lehmann
fce65b72b3
Recognize clients that don't support manifest lists
...
Convert a default platform's manifest to schema1 on the fly.
Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
2016-01-07 15:26:27 -08:00
Aaron Lehmann
697af09566
Recognize clients that don't support manifest lists
...
Convert a default platform's manifest to schema1 on the fly.
Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
2016-01-07 15:26:27 -08:00
Aaron Lehmann
7ef71988a8
Add support for manifest list ("fat manifest")
...
Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
2016-01-07 15:26:27 -08:00
Aaron Lehmann
9c416f0e94
Add support for manifest list ("fat manifest")
...
Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
2016-01-07 15:26:27 -08:00
Aaron Lehmann
66a33baa36
Add API unit testing for schema2 manifest
...
Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
2016-01-07 15:26:26 -08:00
Aaron Lehmann
9284810356
Add API unit testing for schema2 manifest
...
Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
2016-01-07 15:26:26 -08:00
Aaron Lehmann
f14c6a4814
Recognize clients that don't support schema2, and convert manifests to schema1 on the fly
...
Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
2016-01-07 15:26:26 -08:00
Aaron Lehmann
3f746a8207
Recognize clients that don't support schema2, and convert manifests to schema1 on the fly
...
Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
2016-01-07 15:26:26 -08:00