summaryrefslogtreecommitdiffhomepage
path: root/runsc/boot/boot_state_autogen.go
blob: 95494a4c19ec3f66f01bb6bcaa6cfe978b63fc0c (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
38
39
40
41
42
// automatically generated by stateify.

package boot

import (
	"gvisor.dev/gvisor/pkg/state"
)

func (f *sandboxNetstackCreator) StateTypeName() string {
	return "runsc/boot.sandboxNetstackCreator"
}

func (f *sandboxNetstackCreator) StateFields() []string {
	return []string{
		"clock",
		"uniqueID",
		"allowPacketEndpointWrite",
	}
}

func (f *sandboxNetstackCreator) beforeSave() {}

// +checklocksignore
func (f *sandboxNetstackCreator) StateSave(stateSinkObject state.Sink) {
	f.beforeSave()
	stateSinkObject.Save(0, &f.clock)
	stateSinkObject.Save(1, &f.uniqueID)
	stateSinkObject.Save(2, &f.allowPacketEndpointWrite)
}

func (f *sandboxNetstackCreator) afterLoad() {}

// +checklocksignore
func (f *sandboxNetstackCreator) StateLoad(stateSourceObject state.Source) {
	stateSourceObject.Load(0, &f.clock)
	stateSourceObject.Load(1, &f.uniqueID)
	stateSourceObject.Load(2, &f.allowPacketEndpointWrite)
}

func init() {
	state.Register((*sandboxNetstackCreator)(nil))
}