Tobias Klauser
9335683fa5
Use all console mode constants from go-ansiterm
...
The missing console mode constants were added to go-ansiterm in
Azure/go-ansiterm#23 . Use these constants instead of defining them
locally.
Signed-off-by: Tobias Klauser <tklauser@distanz.ch >
2017-10-02 09:49:20 +02:00
Vincent Demeester
7d47823c22
Merge pull request #34946 from dnephin/fix-jsonlog
...
Move pkg/jsonlog to be a subpackage of the single consumer
2017-09-26 10:49:57 +02:00
Daniel Nephin
035604cca6
Move jsonlog to a subpackage of jsonfilelog
...
Signed-off-by: Daniel Nephin <dnephin@docker.com >
2017-09-25 16:07:25 -04:00
Daniel Nephin
a06ad2792a
Fix benchmarks and remove more unnecessary code.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com >
2017-09-25 16:07:25 -04:00
Daniel Nephin
231c5cbd50
Remove unused JSONLog marshaling
...
Signed-off-by: Daniel Nephin <dnephin@docker.com >
2017-09-25 16:07:25 -04:00
Daniel Nephin
638d4cc7e4
Remove unused Format
...
Signed-off-by: Daniel Nephin <dnephin@docker.com >
2017-09-25 16:07:25 -04:00
Daniel Nephin
7de92de636
Unexport FastTimeMarshalJSON
...
Signed-off-by: Daniel Nephin <dnephin@docker.com >
2017-09-25 16:07:25 -04:00
Daniel Nephin
27cfa68af1
Move RFC3339NanoFixed to a more appropriate package.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com >
2017-09-25 16:07:24 -04:00
Vincent Demeester
8bebd42df2
Fix TestMount under a selinux system
...
Signed-off-by: Vincent Demeester <vincent@sbr.pm >
2017-09-25 11:54:30 +02:00
Stephen J Day
0cd4ab3f9a
pkg/package: remove promise package
...
The promise package represents a simple enough concurrency pattern that
replicating it in place is sufficient. To end the propagation of this
package, it has been removed and the uses have been inlined.
While this code could likely be refactored to be simpler without the
package, the changes have been minimized to reduce the possibility of
defects. Someone else may want to do further refactoring to remove
closures and reduce the number of goroutines in use.
Signed-off-by: Stephen J Day <stephen.day@docker.com >
2017-09-21 17:56:45 -07:00
Yong Tang
777d4a1bf4
Merge pull request #34861 from tklauser/fix-cstring-leaks
...
Fix CString memory leaks
2017-09-21 09:14:07 -07:00
Yong Tang
149f3aceb2
Merge pull request #31993 from dccurtis/issue-31816
...
Fixing ‘docker cp’ to allow new target file name in a host symlinked directory
2017-09-19 10:54:53 -07:00
Kir Kolyshkin
46833ee1c3
devmapper: show dmesg if mount fails
...
If mount fails, the reason might be right there in the kernel log ring buffer.
Let's include it in the error message, it might be of great help.
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com >
2017-09-17 22:04:31 -07:00
Kir Kolyshkin
84f1c054e6
devmapper gd: disable for static build
...
Static build with devmapper is impossible now since libudev is required
and no static version of libudev is available (as static libraries are
not supported by systemd which udev is part of).
This should not hurt anyone as "[t]he primary user of static builds
is the Editions, and docker in docker via the containers, and none
of those use device mapper".
Also, since the need for static libdevmapper is gone, there is no need
to self-compile libdevmapper -- let's use the one from Debian Stretch.
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com >
2017-09-17 22:04:31 -07:00
Tobias Klauser
593dbfd144
Fix CString memory leaks
...
Make sure to call C.free on C string allocated using C.CString in every
exit path.
C.CString allocates memory in the C heap using malloc. It is the callers
responsibility to free them. See
https://golang.org/cmd/cgo/#hdr-Go_references_to_C for details.
Signed-off-by: Tobias Klauser <tklauser@distanz.ch >
2017-09-15 09:57:26 +02:00
Victor Vieux
ff686743c5
Add LCOW behind experimental,
...
might not be the cleanest way, but it's definitly the way with the
minimum code change.
Signed-off-by: Victor Vieux <victorvieux@gmail.com >
2017-09-14 13:51:16 -07:00
Akash Gupta
7a7357dae1
LCOW: Implemented support for docker cp + build
...
This enables docker cp and ADD/COPY docker build support for LCOW.
Originally, the graphdriver.Get() interface returned a local path
to the container root filesystem. This does not work for LCOW, so
the Get() method now returns an interface that LCOW implements to
support copying to and from the container.
Signed-off-by: Akash Gupta <akagup@microsoft.com >
2017-09-14 12:07:52 -07:00
Daniel Nephin
f7f101d57e
Add gosimple linter
...
Update gometalinter
Signed-off-by: Daniel Nephin <dnephin@docker.com >
2017-09-12 12:09:59 -04:00
Marcel Edmund Franke
6d3bc28289
Fix typos in Locker example
...
Signed-off-by: Marcel Edmund Franke <marcel.edmund.franke@gmail.com >
2017-09-10 11:34:19 +02:00
Daniel Nephin
09652bf878
Add ineffassign linter
...
Also enable GC in linting to reduce memory usage.
Signed-off-by: Daniel Nephin <dnephin@docker.com >
2017-09-08 18:23:21 -04:00
Yong Tang
2dcb77b24c
Merge pull request #34738 from wgliang/optimization1
...
Optimize some wrong usage and spelling
2017-09-07 09:45:14 -07:00
wangguoliang
94cefa2145
Optimize some wrong usage and spelling
...
Signed-off-by: wgliang <liangcszzu@163.com >
2017-09-07 09:44:08 +08:00
Tibor Vass
be97c66708
Merge pull request #34748 from dnephin/cleanup-client-deps
...
Cleanup client/ package dependencies
2017-09-06 16:14:29 -07:00
Daniel Nephin
6916c215b0
Move tlsconfig to client package.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com >
2017-09-06 16:39:55 -04:00
Simon Ferquel
7c9e64a2e1
re-enable some conversion for darwin-amd64 platform
...
Signed-off-by: Simon Ferquel <simon.ferquel@docker.com >
2017-09-06 12:22:41 +02:00
Brian Goff
a127269803
Merge pull request #34700 from tklauser/pkg-term-winsize
...
pkg/term: use IoctlGetWinsize/IoctlSetWinsize from golang.org/x/sys/unix
2017-09-01 15:58:25 -04:00
Yong Tang
cb952bf006
Merge pull request #34625 from dnephin/more-linters
...
Add interfacer and unconvert linters
2017-09-01 08:46:08 -07:00
Tobias Klauser
32dfc0cb64
pkg/term: use IoctlGetWinsize/IoctlSetWinsize from golang.org/x/sys/unix
...
Use unix.IoctlGetWinsize and unix.IoctlSetWinsize instead of manually
reimplementing them.
Signed-off-by: Tobias Klauser <tklauser@distanz.ch >
2017-09-01 14:43:09 +02:00
Yong Tang
6ed5db6243
Merge pull request #34615 from dnephin/remove-pkg-testutil-assert
...
Move ErrorContains to an internal package
2017-08-26 19:09:27 -07:00
Daniel Nephin
a5631c75e1
Merge pull request #34613 from dnephin/remove-pkg-testutil-cmd
...
Remove pkg testutil cmd
2017-08-25 15:09:52 -04:00
Vincent Demeester
475c9926db
Merge pull request #34590 from shouze/add-support-of-ChownOpts-to-TarWithOptions
...
archive: add ChownOpts support to TarWithOptions
2017-08-25 18:21:31 +02:00
Daniel Nephin
c2c127fa5a
Remove pkg/testutil/cmd
...
Signed-off-by: Daniel Nephin <dnephin@docker.com >
2017-08-25 12:07:31 -04:00
Daniel Nephin
e62b2d410c
Move ErrorContains to an internal package.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com >
2017-08-25 12:04:58 -04:00
Yong Tang
2cea2f5469
Merge pull request #34583 from tklauser/win-event-functions
...
Use windows event functions from golang.org/x/sys/windows
2017-08-25 07:43:03 -07:00
Daniel Nephin
2f5f0af3fd
Add unconvert linter
...
Signed-off-by: Daniel Nephin <dnephin@docker.com >
2017-08-24 15:08:31 -04:00
Daniel Nephin
468154a841
Remove pkg/testutil tempfile and golden
...
Signed-off-by: Daniel Nephin <dnephin@docker.com >
2017-08-23 17:26:27 -04:00
Sébastien HOUZÉ
8a34c67a7e
archive: add ChownOpts support to TarWithOptions
...
Signed-off-by: Sébastien HOUZÉ <cto@verylastroom.com >
2017-08-23 20:52:29 +02:00
Daniel Nephin
e885af2a6b
Remove RunCommandPipelineWithOutput
...
Signed-off-by: Daniel Nephin <dnephin@docker.com >
2017-08-22 17:15:26 -04:00
Daniel Nephin
9db68f4dea
Remove RandomTmpDirPath
...
Signed-off-by: Daniel Nephin <dnephin@docker.com >
2017-08-22 17:15:26 -04:00
Daniel Nephin
e8bd671815
Remove testutil.ParseCgroupPaths
...
Signed-off-by: Daniel Nephin <dnephin@docker.com >
2017-08-22 17:15:26 -04:00
Daniel Nephin
1455086c4b
Remove ConsumeWithSpeed
...
Signed-off-by: Daniel Nephin <dnephin@docker.com >
2017-08-22 17:15:26 -04:00
Daniel Nephin
4f304e72a2
Remove testutil.ReadBody
...
Signed-off-by: Daniel Nephin <dnephin@docker.com >
2017-08-22 17:15:26 -04:00
Daniel Nephin
6a0105b452
Remove ChannelBuffer
...
Signed-off-by: Daniel Nephin <dnephin@docker.com >
2017-08-22 17:15:26 -04:00
Daniel Nephin
6ffbe3f6a8
Remove ListTar
...
Signed-off-by: Daniel Nephin <dnephin@docker.com >
2017-08-22 17:15:26 -04:00
Daniel Nephin
6151d55ee7
Remove testutil.CompareDirectoryEntries and IsKilled
...
Signed-off-by: Daniel Nephin <dnephin@docker.com >
2017-08-22 17:15:26 -04:00
Daniel Nephin
d30e51495a
Remove testutil.ConvertSliceOfStringsToMap
...
Signed-off-by: Daniel Nephin <dnephin@docker.com >
2017-08-22 17:15:26 -04:00
Daniel Nephin
a0c9089971
Remove unused helpers.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com >
2017-08-22 17:15:26 -04:00
Daniel Nephin
62c1f0ef41
Add deadcode linter
...
Signed-off-by: Daniel Nephin <dnephin@docker.com >
2017-08-21 18:18:50 -04:00
Daniel Nephin
372670b507
Add goimports to linters.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com >
2017-08-21 18:15:08 -04:00
Tobias Klauser
e942513ac4
Use event functions from golang.org/x/sys/windows
...
Use CreateEvent, OpenEvent (which both map to the respective *EventW
function) and PulseEvent from golang.org/x/sys instead of local copies.
Signed-off-by: Tobias Klauser <tklauser@distanz.ch >
2017-08-21 12:58:09 +02:00