blob: d33aa4293ea1b10db3bf37b346fbee3ec4a1e42e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
// automatically generated by stateify.
package boot
import (
"gvisor.dev/gvisor/pkg/state"
)
func (s *sandboxNetstackCreator) StateTypeName() string {
return "runsc/boot.sandboxNetstackCreator"
}
func (s *sandboxNetstackCreator) StateFields() []string {
return []string{
"clock",
"uniqueID",
}
}
func (s *sandboxNetstackCreator) beforeSave() {}
func (s *sandboxNetstackCreator) StateSave(stateSinkObject state.Sink) {
s.beforeSave()
stateSinkObject.Save(0, &s.clock)
stateSinkObject.Save(1, &s.uniqueID)
}
func (s *sandboxNetstackCreator) afterLoad() {}
func (s *sandboxNetstackCreator) StateLoad(stateSourceObject state.Source) {
stateSourceObject.Load(0, &s.clock)
stateSourceObject.Load(1, &s.uniqueID)
}
func init() {
state.Register((*sandboxNetstackCreator)(nil))
}
|