summaryrefslogtreecommitdiff
path: root/libpod
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-09-12 22:23:17 +0200
committerGitHub <noreply@github.com>2019-09-12 22:23:17 +0200
commit42332a3ea268399fa2bf192d100db808ca4efcf8 (patch)
treeb2ad1c49fa3e870a66cf8a0c149780433d674d71 /libpod
parentaf8fedcc78674d71d43ca3000438c42b7b6b6994 (diff)
parent3c277a67d51eab51ab1baad0c59b8b9d92893320 (diff)
downloadpodman-42332a3ea268399fa2bf192d100db808ca4efcf8.tar.gz
podman-42332a3ea268399fa2bf192d100db808ca4efcf8.tar.bz2
podman-42332a3ea268399fa2bf192d100db808ca4efcf8.zip
Merge pull request #3989 from mheon/storage_containers_add_info
Add further fields to StorageContainer
Diffstat (limited to 'libpod')
-rw-r--r--libpod/runtime_cstorage.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/libpod/runtime_cstorage.go b/libpod/runtime_cstorage.go
index 586db5a1e..1e84aef4b 100644
--- a/libpod/runtime_cstorage.go
+++ b/libpod/runtime_cstorage.go
@@ -1,6 +1,8 @@
package libpod
import (
+ "time"
+
"github.com/containers/libpod/libpod/define"
"github.com/containers/storage"
"github.com/pkg/errors"
@@ -12,6 +14,8 @@ import (
type StorageContainer struct {
ID string
Names []string
+ Image string
+ CreateTime time.Time
PresentInLibpod bool
}
@@ -31,6 +35,8 @@ func (r *Runtime) ListStorageContainers() ([]*StorageContainer, error) {
storageCtr := new(StorageContainer)
storageCtr.ID = ctr.ID
storageCtr.Names = ctr.Names
+ storageCtr.Image = ctr.ImageID
+ storageCtr.CreateTime = ctr.Created
// Look up if container is in state
hasCtr, err := r.state.HasContainer(ctr.ID)