ebc0eff478
Add support for details on service logs
...
Adds CLI and client support for details on service logs. CLI component
of moby/moby#32996 .
Signed-off-by: Drew Erny <drew.erny@docker.com >
2017-05-16 16:53:58 -07:00
c17acee8cf
Merge pull request #48 from cyli/root-rotation-cli
...
Synchronous CLI command for root CA rotation
2017-05-16 14:58:05 -07:00
51f698337d
Avoid loop when discarding contents of progress pipe
...
Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com >
2017-05-16 14:34:59 -07:00
ab6bc5dce6
service: Avoid underflow in logs padding calculation
...
This command inserts a variable amount of padding in the log line:
padding := strings.Repeat(" ", f.padding-getMaxLength(task.Slot))
If the service is scaled up, or the slot numbers are noncontiguous, the
subtraction can underflow, causing a crash.
Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com >
2017-05-16 12:27:31 -07:00
d7f6563efc
Update cli imports to using local package
...
Also, rename a bunch of variable to not *shadow* the `opts` package
name.
Signed-off-by: Vincent Demeester <vincent@sbr.pm >
2017-05-15 14:45:19 +02:00
db5620026d
Add support for configs
...
Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com >
2017-05-11 13:42:49 -07:00
c31d25653f
Add line length linter
...
Signed-off-by: Daniel Nephin <dnephin@docker.com >
2017-05-08 15:57:56 -04:00
37ccc00d0e
Add interfacer linter
...
Signed-off-by: Daniel Nephin <dnephin@docker.com >
2017-05-08 15:57:50 -04:00
295140edf2
cli: gofmt + goimports
...
Signed-off-by: Gaetan de Villele <gdevillele@gmail.com >
2017-05-08 10:51:30 -07:00
57230a7212
rm client and vendor it instead
...
Signed-off-by: Tibor Vass <tibor@docker.com >
2017-05-08 10:33:56 -07:00
779012af69
Refacator pkg/streamformatter
...
StreamFormatter suffered was two distinct structs mixed into a single struct
without any overlap.
Signed-off-by: Daniel Nephin <dnephin@docker.com >
2017-05-03 18:49:14 -07:00
9ca78094b5
delete ineffectual assignment
...
Signed-off-by: yupengzte <yu.peng36@zte.com.cn >
2017-05-03 18:49:14 -07:00
25809f8991
move service runtime filter to server
...
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com >
2017-05-03 18:44:11 -07:00
a316b380e7
do not allow duration less than 1 ms in healthcheck parameters
...
Signed-off-by: Dong Chen <dongluo.chen@docker.com >
2017-05-03 17:46:40 -07:00
b86533c479
Add ineffassign linter.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com >
2017-05-02 17:57:46 -04:00
08af0f28c5
Add gocycle lint
...
Whitelist some existing offenders, and use a high limit for now.
This limit should decrese over time.
Signed-off-by: Daniel Nephin <dnephin@docker.com >
2017-05-02 17:57:46 -04:00
8f73a12f9b
Add deadcode linter.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com >
2017-05-02 17:57:46 -04:00
690ef8af79
Enable golint
...
Signed-off-by: Daniel Nephin <dnephin@docker.com >
2017-05-02 17:57:46 -04:00
5aa70d68b3
remove service runtime filter from client
...
it’s moving to the server.
Signed-off-by: Gaetan de Villele <gdevillele@gmail.com >
2017-04-27 15:07:20 -07:00
10641c2aae
Update imports.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com >
2017-04-17 18:07:56 -04:00
1630fc40f8
Import docker/docker/cli
...
Signed-off-by: Daniel Nephin <dnephin@gmail.com >
2017-04-17 17:40:59 -04:00