diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-09-24 15:32:36 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-24 15:32:36 +0000 |
commit | 3957058f298f03bf57b0bac17f5c4d7f274e9ecb (patch) | |
tree | 6fd129d525e79eac10febb9207172e090e3da944 /pkg/domain/entities/containers.go | |
parent | 08cc91926db1cd17509f8578e2ff00a94747dbd4 (diff) | |
parent | 19b955f0999f7fe9e187e94d60327e4d6ee891c0 (diff) | |
download | podman-3957058f298f03bf57b0bac17f5c4d7f274e9ecb.tar.gz podman-3957058f298f03bf57b0bac17f5c4d7f274e9ecb.tar.bz2 podman-3957058f298f03bf57b0bac17f5c4d7f274e9ecb.zip |
Merge pull request #7753 from vrothberg/fix-7689
remote stats
Diffstat (limited to 'pkg/domain/entities/containers.go')
-rw-r--r-- | pkg/domain/entities/containers.go | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/pkg/domain/entities/containers.go b/pkg/domain/entities/containers.go index 16997cdd1..7b272f01e 100644 --- a/pkg/domain/entities/containers.go +++ b/pkg/domain/entities/containers.go @@ -411,10 +411,17 @@ type ContainerCpReport struct { // ContainerStatsOptions describes input options for getting // stats on containers type ContainerStatsOptions struct { - All bool - Format string - Latest bool - NoReset bool - NoStream bool - StatChan chan []*define.ContainerStats + // Operate on the latest known container. Only supported for local + // clients. + Latest bool + // Stream stats. + Stream bool +} + +// ContainerStatsReport is used for streaming container stats. +type ContainerStatsReport struct { + // Error from reading stats. + Error error + // Results, set when there is no error. + Stats []define.ContainerStats } |