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
|
// automatically generated by stateify.
package control
import (
"gvisor.googlesource.com/gvisor/pkg/state"
"gvisor.googlesource.com/gvisor/pkg/sentry/fs"
)
func (x *RightsFiles) save(m state.Map) {
m.SaveValue("", ([]*fs.File)(*x))
}
func (x *RightsFiles) load(m state.Map) {
m.LoadValue("", new([]*fs.File), func(y interface{}) { *x = (RightsFiles)(y.([]*fs.File)) })
}
func (x *scmCredentials) beforeSave() {}
func (x *scmCredentials) save(m state.Map) {
x.beforeSave()
m.Save("t", &x.t)
m.Save("kuid", &x.kuid)
m.Save("kgid", &x.kgid)
}
func (x *scmCredentials) afterLoad() {}
func (x *scmCredentials) load(m state.Map) {
m.Load("t", &x.t)
m.Load("kuid", &x.kuid)
m.Load("kgid", &x.kgid)
}
func init() {
state.Register("control.RightsFiles", (*RightsFiles)(nil), state.Fns{Save: (*RightsFiles).save, Load: (*RightsFiles).load})
state.Register("control.scmCredentials", (*scmCredentials)(nil), state.Fns{Save: (*scmCredentials).save, Load: (*scmCredentials).load})
}
|