github.com/ttpreport/gvisor-ligolo@v0.0.0-20240123134145-a858404967ba/pkg/sentry/kernel/kernel_opts_state_autogen.go (about) 1 // automatically generated by stateify. 2 3 //go:build go1.1 4 // +build go1.1 5 6 package kernel 7 8 import ( 9 "github.com/ttpreport/gvisor-ligolo/pkg/state" 10 ) 11 12 func (s *SpecialOpts) StateTypeName() string { 13 return "pkg/sentry/kernel.SpecialOpts" 14 } 15 16 func (s *SpecialOpts) StateFields() []string { 17 return []string{} 18 } 19 20 func (s *SpecialOpts) beforeSave() {} 21 22 // +checklocksignore 23 func (s *SpecialOpts) StateSave(stateSinkObject state.Sink) { 24 s.beforeSave() 25 } 26 27 func (s *SpecialOpts) afterLoad() {} 28 29 // +checklocksignore 30 func (s *SpecialOpts) StateLoad(stateSourceObject state.Source) { 31 } 32 33 func init() { 34 state.Register((*SpecialOpts)(nil)) 35 }