summaryrefslogtreecommitdiff
path: root/libpod/container_inspect.go
diff options
context:
space:
mode:
authorMatthew Heon <mheon@redhat.com>2021-01-12 11:48:53 -0500
committerMatthew Heon <mheon@redhat.com>2021-01-12 11:48:53 -0500
commitbefd40b57d4e99cccd32ba6867a85c1da816fe5e (patch)
tree694513c032cffd4180838566f5f307045cf44bfc /libpod/container_inspect.go
parent1b9366d650200d0f2029d628fa00d1fd318631aa (diff)
downloadpodman-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 'libpod/container_inspect.go')
-rw-r--r--libpod/container_inspect.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/container_inspect.go b/libpod/container_inspect.go
index 51474471b..870d92ca9 100644
--- a/libpod/container_inspect.go
+++ b/libpod/container_inspect.go
@@ -49,7 +49,7 @@ func (c *Container) Inspect(size bool) (*define.InspectContainerData, error) {
return c.inspectLocked(size)
}
-func (c *Container) getContainerInspectData(size bool, driverData *driver.Data) (*define.InspectContainerData, error) {
+func (c *Container) getContainerInspectData(size bool, driverData *define.DriverData) (*define.InspectContainerData, error) {
config := c.config
runtimeInfo := c.state
ctrSpec, err := c.specFromState()