Skip to content

Commit f8a73e0

Browse files
committed
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
1 parent a022fa7 commit f8a73e0

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

fs/fs.go

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -91,23 +91,6 @@ type RealFsInfo struct {
9191
fsUUIDToDeviceName map[string]string
9292
}
9393

94-
type Context struct {
95-
// docker root directory.
96-
Docker DockerContext
97-
RktPath string
98-
Crio CrioContext
99-
}
100-
101-
type DockerContext struct {
102-
Root string
103-
Driver string
104-
DriverStatus map[string]string
105-
}
106-
107-
type CrioContext struct {
108-
Root string
109-
}
110-
11194
func NewFsInfo(context Context) (FsInfo, error) {
11295
mounts, err := mount.GetMounts(nil)
11396
if err != nil {

fs/types.go

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,23 @@ import (
1818
"errors"
1919
)
2020

21+
type Context struct {
22+
// docker root directory.
23+
Docker DockerContext
24+
RktPath string
25+
Crio CrioContext
26+
}
27+
28+
type DockerContext struct {
29+
Root string
30+
Driver string
31+
DriverStatus map[string]string
32+
}
33+
34+
type CrioContext struct {
35+
Root string
36+
}
37+
2138
type DeviceInfo struct {
2239
Device string
2340
Major uint

0 commit comments

Comments
 (0)