summaryrefslogtreecommitdiff
path: root/pkg/domain/entities/containers.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-04-09 14:51:02 +0200
committerGitHub <noreply@github.com>2020-04-09 14:51:02 +0200
commit655139fdda20819160b2baad840429a80d6285e5 (patch)
treecc9f24c405c4bfbf636a0ada96fa22f11bba87c0 /pkg/domain/entities/containers.go
parent46227e0b030ac4180d8f3179f2b33c5d6d8fd200 (diff)
parent7a3bfbf0767675472451d7328cada39b5797cdf8 (diff)
downloadpodman-655139fdda20819160b2baad840429a80d6285e5.tar.gz
podman-655139fdda20819160b2baad840429a80d6285e5.tar.bz2
podman-655139fdda20819160b2baad840429a80d6285e5.zip
Merge pull request #5760 from vrothberg/v2-logs
podmanV2: implement logs
Diffstat (limited to 'pkg/domain/entities/containers.go')
-rw-r--r--pkg/domain/entities/containers.go20
1 files changed, 20 insertions, 0 deletions
diff --git a/pkg/domain/entities/containers.go b/pkg/domain/entities/containers.go
index 5d302058b..98f9f9471 100644
--- a/pkg/domain/entities/containers.go
+++ b/pkg/domain/entities/containers.go
@@ -172,6 +172,26 @@ type AttachOptions struct {
Stderr *os.File
}
+// ContainerLogsOptions describes the options to extract container logs.
+type ContainerLogsOptions struct {
+ // Show extra details provided to the logs.
+ Details bool
+ // Follow the log output.
+ Follow bool
+ // Display logs for the latest container only. Ignored on the remote client.
+ Latest bool
+ // Show container names in the output.
+ Names bool
+ // Show logs since this timestamp.
+ Since time.Time
+ // Number of lines to display at the end of the output.
+ Tail int64
+ // Show timestamps in the logs.
+ Timestamps bool
+ // Write the logs to Writer.
+ Writer io.Writer
+}
+
// ExecOptions describes the cli values to exec into
// a container
type ExecOptions struct {