File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,8 @@ type Sandbox interface {
36
36
SetKey (key string ) error
37
37
// Delete destroys this container after detaching it from all connected endpoints.
38
38
Delete () error
39
+ // Retrieve the interfaces in the sandbox, for restoring checkpointed container
40
+ Interfaces () []osl.Interface
39
41
}
40
42
41
43
// SandboxOption is a option setter function type used to pass varios options to
@@ -165,6 +167,14 @@ func (sb *sandbox) Delete() error {
165
167
return nil
166
168
}
167
169
170
+ func (sb * sandbox ) Interfaces () []osl.Interface {
171
+ if sb .osSbox == nil {
172
+ return nil
173
+ }
174
+
175
+ return sb .osSbox .Info ().Interfaces ()
176
+ }
177
+
168
178
func (sb * sandbox ) Refresh (options ... SandboxOption ) error {
169
179
// Store connected endpoints
170
180
epList := sb .getConnectedEndpoints ()
You can’t perform that action at this time.
0 commit comments