MCPcopy
hub / github.com/nirui/sshwifty / bootup

Method bootup

application/command/fsm.go:117–131  ·  view source on GitHub ↗

bootup initialize the machine

(r *rw.LimitedReader, b []byte)

Source from the content-addressed store, hash-verified

115
116// bootup initialize the machine
117func (f *FSM) bootup(r *rw.LimitedReader, b []byte) FSMError {
118 s, err := f.m.Bootup(r, b)
119
120 if s == nil {
121 panic("FSMState must not be nil")
122 }
123
124 if !err.Succeed() {
125 return err
126 }
127
128 f.s = s
129
130 return err
131}
132
133// running returns whether or not current FSM is running
134func (f *FSM) running() bool {

Callers 1

reinitMethod · 0.80

Calls 2

SucceedMethod · 0.80
BootupMethod · 0.65

Tested by

no test coverage detected