Граф коммитов

10 Коммитов

Автор SHA1 Сообщение Дата
Vincent Demeester acf8a70ecb Creates a types/reference package…
… for reference related code O:).

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
2016-04-01 11:00:16 +02:00
Vincent Demeester 486171b34d Make required arguments required.
Change method signatures to make required arguments actually
required (using a paramater), all accross the API.

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
2016-03-30 12:33:23 +02:00
Stephen J Day 002fcc738c client: plumb net/context.Context through entire API
In general, `net/context.Context` should be the first argument to
methods that may be on a request call chain. While some API methods had
context, many did not, making support inconsistent. Applications that
require full plumbing of context, such as those that rely on
cancellation for resource cleanup, would be incompatible with
inconsistent plumbing. The change takes a first pass at adding context
through the entire API.

Signed-off-by: Stephen J Day <stephen.day@docker.com>
2016-03-08 13:30:37 -08:00
Sebastiaan van Stijn afc431f600 Refactor JSON decoding, reduce defers
There's no need to check for error-nilness if
we're going to return a "nil" on success.

Also, removed defer statements because they
were no longer needed, and have some
overhead; http://lk4d4.darth.io/posts/defer/

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2016-01-24 23:16:06 -08:00
David Calavera 0c77b4b120 Fix repository imports and packages.
Signed-off-by: David Calavera <david.calavera@gmail.com>
2016-01-04 18:26:13 -05:00
David Calavera 21f48252f3 Make the commit configuration to be a typed struct rather than accepting a string.
Signed-off-by: David Calavera <david.calavera@gmail.com>
2015-12-09 12:06:58 -05:00
David Calavera abad24b6bc Lowercase http method functions.
Signed-off-by: David Calavera <david.calavera@gmail.com>
2015-12-09 12:04:59 -05:00
David Calavera 9a40f025a5 Create interface that clients that talk to the api must fulfill.
Signed-off-by: David Calavera <david.calavera@gmail.com>
2015-12-09 12:04:58 -05:00
David Calavera 5108572859 Use ensureReaderClosed consistently to close a response body reader.
Signed-off-by: David Calavera <david.calavera@gmail.com>
2015-12-09 12:04:58 -05:00
David Calavera 47005e746b Implement docker commit with standalone client lib.
Signed-off-by: David Calavera <david.calavera@gmail.com>
2015-12-09 12:04:53 -05:00