зеркало из https://github.com/docker/engine-api.git
Merge pull request #217 from cpuguy83/add_log_attrs
Add `Details` field for logs
This commit is contained in:
Коммит
7542c3decd
|
@ -35,6 +35,10 @@ func (cli *Client) ContainerLogs(ctx context.Context, container string, options
|
|||
query.Set("timestamps", "1")
|
||||
}
|
||||
|
||||
if options.Details {
|
||||
query.Set("details", "1")
|
||||
}
|
||||
|
||||
if options.Follow {
|
||||
query.Set("follow", "1")
|
||||
}
|
||||
|
|
|
@ -57,6 +57,7 @@ type ContainerLogsOptions struct {
|
|||
Timestamps bool
|
||||
Follow bool
|
||||
Tail string
|
||||
Details bool
|
||||
}
|
||||
|
||||
// ContainerRemoveOptions holds parameters to remove containers.
|
||||
|
|
Загрузка…
Ссылка в новой задаче