Stephen J Day
fec2afc93f
Initial V2 API Router Implementation
...
This commit includes the initial API router, based on gorilla mux and a test
suite ensuring the expected variables are extracted. Currently unexported, the
structure here will likely change as this definition will be shared with the
API client.
2014-11-07 16:08:14 -08:00
Olivier Gambier
da205085f3
Merge pull request #686 from BrianBland/storagedriver-versioning
...
Adds versioning for out-of-process storage driver
2014-11-07 14:55:13 -08:00
Olivier Gambier
57ad37163e
Merge pull request #699 from BrianBland/storagedriver-api-rename
...
Renames ResumeWritePosition to CurrentSize in storage driver api
2014-11-07 14:51:50 -08:00
Brian Bland
cb1bdacbe3
Renames ResumeWritePosition to CurrentSize in storage driver api
2014-11-07 12:58:48 -08:00
Olivier Gambier
abdf927c40
Merge pull request #685 from BrianBland/storagedriver
...
Expects storage driver executables to be of the form registry-storage-<name>
2014-11-07 01:28:43 -08:00
Brian Bland
150677f1f5
Expects storage driver executables to be of the form registry-storage-name
...
Moves main packages to sub-packages of the individual storage drivers
2014-11-06 18:32:06 -08:00
Olivier Gambier
e31b7d8d9a
Initial open-design proposal
2014-11-06 13:28:27 -08:00
Brian Bland
1ae5485998
Adds versioning for out-of-process storage driver
...
The registry currently only accepts storage driver versions with the
same major version and an equal or lower minor version as its own
current storage driver api version, but this may be changed in the
future if we decide to implement specific version cross-compatibility.
2014-11-06 12:16:14 -08:00
Olivier Gambier
f02cfee950
Merge pull request #652 from BrianBland/configuration
...
NG: Configuration parser
2014-11-05 15:44:10 -08:00
Brian Bland
96d26842f8
Refactors configuration parser, removes Registry level from config file
...
Most conditional parsing code has been moved into UnmarshalYAML
functions for simplicity
Uses the BrianBland fork of goyaml in configuration.go temporarily until
fix https://github.com/go-yaml/yaml/pull/52 is merged in
2014-11-04 22:31:59 -08:00
Brian Bland
2b51a8ab43
Adds README.md to the configuration package
2014-11-04 22:31:59 -08:00
Brian Bland
2013ef5a5b
Adds documentation for the configuration parser and tests
2014-11-04 22:31:59 -08:00
Brian Bland
0ad4bba103
Initial configuration parser
2014-11-04 22:31:59 -08:00
Olivier Gambier
df7eed3a2c
Merge pull request #643 from BrianBland/next-generation
...
Adds storage driver interface, tests, and three basic implementations
2014-11-04 19:31:35 -08:00
Vincent Batts
7dd4199fe8
registry: don't iterate through certs
...
the golang tls.Conn does a fine job of that.
http://golang.org/src/pkg/crypto/tls/handshake_client.go?#L334
Signed-off-by: Vincent Batts <vbatts@redhat.com>
2014-11-04 16:12:23 -05:00
Brian Bland
7daa850d44
Fixes documentation to show that StorageDriver.List is non-recursive
2014-11-04 09:52:24 -08:00
Brian Bland
43716a2850
Uses IsTruncated and NextMarker for S3 list internal pagination
2014-11-03 16:27:19 -08:00
Brian Bland
b522fbd675
Removes WrapReader boilerplate for updates to libchan
...
libchan now supports io.ReadCloser and io.WriteCloser, so we don't need
io.ReadWriteCloser wrapping
2014-10-31 11:50:02 -07:00
Tibor Vass
eba996acfb
Merge pull request #8870 from tiborvass/merge_release_v1.3.1
...
Merge release v1.3.1
2014-10-30 20:24:34 -04:00
Tibor Vass
47a494e0fd
Fix login command
...
Signed-off-by: Tibor Vass <teabee89@gmail.com>
2014-10-30 19:44:44 -04:00
Tibor Vass
1b72e0234e
Do not verify certificate when using --insecure-registry on an HTTPS registry
...
Signed-off-by: Tibor Vass <teabee89@gmail.com>
Conflicts:
registry/registry.go
registry/registry_test.go
registry/service.go
registry/session.go
Conflicts:
registry/endpoint.go
registry/registry.go
2014-10-30 19:44:09 -04:00
Michael Crosby
552c17d618
Don't hard code true for auth job
...
Signed-off-by: Michael Crosby <michael@docker.com>
Conflicts:
registry/service.go
2014-10-30 19:41:55 -04:00
Michael Crosby
50e11c9d8e
Refactor IsSecure change
...
Fix issue with restoring the tag store and setting static configuration
from the daemon. i.e. the field on the TagStore struct must be made
internal or the json.Unmarshal in restore will overwrite the insecure
registries to be an empty struct.
Signed-off-by: Michael Crosby <michael@docker.com>
Conflicts:
graph/pull.go
graph/push.go
graph/tags.go
2014-10-30 19:41:55 -04:00
unclejack
034c1cfb9d
make http usage for registry explicit
...
Docker-DCO-1.1-Signed-off-by: Cristian Staretu <cristian.staretu@gmail.com> (github: unclejack)
Conflicts:
daemon/config.go
daemon/daemon.go
graph/pull.go
graph/push.go
graph/tags.go
registry/registry.go
registry/service.go
2014-10-30 19:41:55 -04:00
Brian Bland
3e4738587f
Adds README for the storagedriver package
2014-10-30 16:31:43 -07:00
Tibor Vass
96272e1c9a
Merge pull request #8861 from tiborvass/bump_v1.3.1
...
Bump v1.3.1
2014-10-30 12:43:43 -04:00
Tibor Vass
0481c669c7
Fix login command
...
Signed-off-by: Tibor Vass <teabee89@gmail.com>
2014-10-30 09:17:11 -04:00
Brian Bland
0e5d41ff9b
Updates documentation to follow godoc conventions
2014-10-29 16:44:26 -07:00
Victor Vieux
5685221c5f
Merge pull request #8387 from vbatts/vbatts-registry_test_enpoint
...
registry/endpoint: make it testable
2014-10-29 13:36:17 -07:00
Jessie Frazelle
21ba3078b6
Merge pull request #8669 from monsterzz/8668-dualstack-registry
...
Use dual-stack Dialer when talking to registy
2014-10-29 12:03:12 -07:00
Brian Bland
ca0084fad1
Adds StorageDriverFactory, unifying creation of StorageDrivers
...
Custom storage drivers can register a factory to create the driver by
name, similar to the database/sql package's Register and Open
factory.Create returns an in-process driver if registered or an IPC
driver if one can be found, erroring otherwise
This standardizes parameter passing for creation of storage drivers
Also adds documentation for storagedriver package and children
2014-10-28 18:21:06 -07:00
Michael Crosby
751e25119f
Merge pull request #8836 from jfrazelle/hub-login-error
...
Fix error on successful login.
2014-10-28 18:09:17 -07:00
Jessica Frazelle
22f87eb9be
Fix error on successful login.
...
Docker-DCO-1.1-Signed-off-by: Jessica Frazelle <jess@docker.com> (github: jfrazelle)
2014-10-28 17:42:03 -07:00
Brian Bland
ff81f3a719
Adds conditional SkipCheck for storage driver tests
2014-10-27 13:24:07 -07:00
Brian Bland
bac40b2b35
Merge pull request #3 from AndreyKostov/next-generation
...
Preliminary s3 driver implementation
2014-10-27 12:08:43 -07:00
Igor Dolzhikov
1a8edd0d55
excluding unused transformation to []byte
...
Signed-off-by: Igor Dolzhikov <bluesriverz@gmail.com>
2014-10-28 01:04:36 +06:00
Andrey Kostov
e3a5955cd2
Unify permissions settings
2014-10-26 10:00:53 -07:00
Brian Bland
7c892deb1c
Uses streams internally for ipc Get/Put Content
...
This is done because libchan/spdystream does not currently support sending
serialzied objects of size larger than 16MB
See https://github.com/docker/libchan/issues/65
2014-10-24 18:44:36 -07:00
Andrey Kostov
1342873367
Add s3 driver for the new Storage Layer API
2014-10-24 16:37:25 -07:00
Andrey Kostov
47ca8be42f
Slight additions/modifications to the test suite
2014-10-24 16:36:17 -07:00
Alexandr Morozov
0827b71157
Mass gofmt
...
Signed-off-by: Alexandr Morozov <lk4d4@docker.com>
2014-10-24 15:11:48 -07:00
Alexandr Morozov
32654af8b6
Use logrus everywhere for logging
...
Fixed #8761
Signed-off-by: Alexandr Morozov <lk4d4@docker.com>
2014-10-24 15:03:06 -07:00
Vincent Batts
bcbb7e0c41
registry/endpoint: make it testable
...
Signed-off-by: Vincent Batts <vbatts@redhat.com>
2014-10-24 16:27:17 -04:00
Brian Bland
3f95694180
Adds storage driver interface, tests, and two basic implementations
2014-10-22 10:50:43 -07:00
Olivier Gambier
12e68998e1
+ license
2014-10-21 13:25:04 -07:00
Tibor Vass
d81951fffa
Merge pull request #8423 from unclejack/lint_changes
...
lint changes part 1
2014-10-21 12:15:58 -04:00
Gleb M Borisov
ef57ab120c
Use dual-stack Dialer when talking to registy
...
Signed-off-by: Gleb M. Borisov <borisov.gleb@gmail.com>
2014-10-21 03:59:11 +04:00
Daniel, Dao Quang Minh
dff0678909
Avoid fallback to SSL protocols < TLS1.0
...
Signed-off-by: Tibor Vass <teabee89@gmail.com>
Docker-DCO-1.1-Signed-off-by: Daniel, Dao Quang Minh <dqminh89@gmail.com> (github: dqminh)
Conflicts:
registry/registry.go
2014-10-20 16:51:06 -04:00
Tibor Vass
798fd3c764
Do not verify certificate when using --insecure-registry on an HTTPS registry
...
Signed-off-by: Tibor Vass <teabee89@gmail.com>
Conflicts:
registry/registry.go
registry/registry_test.go
registry/service.go
registry/session.go
2014-10-20 16:51:06 -04:00
Michael Crosby
27ddc260e2
Don't hard code true for auth job
...
Signed-off-by: Michael Crosby <michael@docker.com>
Conflicts:
registry/service.go
2014-10-20 16:51:05 -04:00