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

Interface FSMMachine

application/command/fsm.go:76–90  ·  view source on GitHub ↗

FSMMachine State machine

Source from the content-addressed store, hash-verified

74
75// FSMMachine State machine
76type FSMMachine interface {
77 // Bootup boots up the machine
78 Bootup(r *rw.LimitedReader, b []byte) (FSMState, FSMError)
79
80 // Close stops the machine and get it ready for release.
81 //
82 // NOTE: Close function is responsible in making sure the HeaderClose signal
83 // is sent before it returns.
84 // (It may not need to send the header by itself, but it have to
85 // make sure the header is sent)
86 Close() error
87
88 // Release shuts the machine down completely and release it's resources
89 Release() error
90}
91
92// FSM state machine control
93type FSM struct {

Callers 10

bootupMethod · 0.65
runMethod · 0.65
GetMethod · 0.65
mainFunction · 0.65
remoteMethod · 0.65
remoteMethod · 0.65
CloseMethod · 0.65
closeMethod · 0.65
loadFileFunction · 0.65
releaseMethod · 0.65

Implementers 3

sshClientapplication/commands/ssh.go
telnetClientapplication/commands/telnet.go
dummyStreamCommandapplication/command/handler_stream_tes

Calls

no outgoing calls

Tested by

no test coverage detected