// automatically generated by stateify. package control import ( "gvisor.dev/gvisor/pkg/state" "gvisor.dev/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}) }