diff options
author | Matthew Heon <mheon@redhat.com> | 2021-01-12 11:48:53 -0500 |
---|---|---|
committer | Matthew Heon <mheon@redhat.com> | 2021-01-12 11:48:53 -0500 |
commit | befd40b57d4e99cccd32ba6867a85c1da816fe5e (patch) | |
tree | 694513c032cffd4180838566f5f307045cf44bfc /pkg/inspect/inspect.go | |
parent | 1b9366d650200d0f2029d628fa00d1fd318631aa (diff) | |
download | podman-befd40b57d4e99cccd32ba6867a85c1da816fe5e.tar.gz podman-befd40b57d4e99cccd32ba6867a85c1da816fe5e.tar.bz2 podman-befd40b57d4e99cccd32ba6867a85c1da816fe5e.zip |
Exorcise Driver code from libpod/define
The libpod/define code should not import any large dependencies,
as it is intended to be structures and definitions only. It
included the libpod/driver package for information on the storage
driver, though, which brought in all of c/storage. Split the
driver package so that define has the struct, and thus does not
need to import Driver. And simplify the driver code while we're
at it.
Signed-off-by: Matthew Heon <mheon@redhat.com>
Diffstat (limited to 'pkg/inspect/inspect.go')
-rw-r--r-- | pkg/inspect/inspect.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/inspect/inspect.go b/pkg/inspect/inspect.go index 27bff46a0..67c6a5c03 100644 --- a/pkg/inspect/inspect.go +++ b/pkg/inspect/inspect.go @@ -4,7 +4,7 @@ import ( "time" "github.com/containers/image/v5/manifest" - "github.com/containers/podman/v2/libpod/driver" + "github.com/containers/podman/v2/libpod/define" "github.com/opencontainers/go-digest" v1 "github.com/opencontainers/image-spec/specs-go/v1" ) @@ -25,7 +25,7 @@ type ImageData struct { Os string `json:"Os"` Size int64 `json:"Size"` VirtualSize int64 `json:"VirtualSize"` - GraphDriver *driver.Data `json:"GraphDriver"` + GraphDriver *define.DriverData `json:"GraphDriver"` RootFS *RootFS `json:"RootFS"` Labels map[string]string `json:"Labels"` Annotations map[string]string `json:"Annotations"` |