Move fs.Context to types.go

This config struct is now used in the plugin InitializeContext method, so it should be defined in the os-neutral types.go file
This commit is contained in:
Jordan Liggitt 2019-04-10 02:13:24 +00:00
parent a022fa71b7
commit f8a73e018b
2 changed files with 17 additions and 17 deletions

View File

@ -91,23 +91,6 @@ type RealFsInfo struct {
fsUUIDToDeviceName map[string]string
}
type Context struct {
// docker root directory.
Docker DockerContext
RktPath string
Crio CrioContext
}
type DockerContext struct {
Root string
Driver string
DriverStatus map[string]string
}
type CrioContext struct {
Root string
}
func NewFsInfo(context Context) (FsInfo, error) {
mounts, err := mount.GetMounts(nil)
if err != nil {

View File

@ -18,6 +18,23 @@ import (
"errors"
)
type Context struct {
// docker root directory.
Docker DockerContext
RktPath string
Crio CrioContext
}
type DockerContext struct {
Root string
Driver string
DriverStatus map[string]string
}
type CrioContext struct {
Root string
}
type DeviceInfo struct {
Device string
Major uint