-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Fix #682 - Add LogPath to docker inspect response #683
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
27df433
508d84e
528a678
230eafd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -53,6 +53,12 @@ public class InspectContainerResponse { | |
| @JsonProperty("HostsPath") | ||
| private String hostsPath; | ||
|
|
||
| /** | ||
| * @since {@link RemoteApiVersion#VERSION_1_17} | ||
| */ | ||
| @JsonProperty("LogPath") | ||
| private String logPath; | ||
|
|
||
| @JsonProperty("Id") | ||
| private String id; | ||
|
|
||
|
|
@@ -168,6 +174,11 @@ public String getHostsPath() { | |
| return hostsPath; | ||
| } | ||
|
|
||
| @CheckForNull | ||
| public String getLogPath() { | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As I know it never produces null - it can return empty string
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On docker versions where this field didn't exist before it would be null. |
||
| return logPath; | ||
| } | ||
|
|
||
| public String getName() { | ||
| return name; | ||
| } | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since what api version?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's present since I remember. Even in your test inspectContainerResponse_full.json there is LogPath element
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please try check whether it exist before 1.19 at least and place javadoc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it already exists in existing json samples, then extend deserialisation test case with check.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LogPath was for sure in 1.18
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please place javadoc
@since ~ >1.17