Documentation ¶
Index ¶
- type TerminalSessionHandler
- func (_m *TerminalSessionHandler) AutoSelectShell(req *terminal.TerminalSessionRequest) (string, error)
- func (_m *TerminalSessionHandler) Close(sessionId string, statusCode uint32, msg string)
- func (_m *TerminalSessionHandler) GetTerminalSession(req *terminal.TerminalSessionRequest) (int, *terminal.TerminalMessage, error)
- func (_m *TerminalSessionHandler) RunCmdInRemotePod(req *terminal.TerminalSessionRequest, cmds []string) (*bytes.Buffer, *bytes.Buffer, error)
- func (_m *TerminalSessionHandler) ValidateSession(sessionId string) bool
- func (_m *TerminalSessionHandler) ValidateShell(req *terminal.TerminalSessionRequest) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TerminalSessionHandler ¶
TerminalSessionHandler is an autogenerated mock type for the TerminalSessionHandler type
func NewTerminalSessionHandler ¶
func NewTerminalSessionHandler(t mockConstructorTestingTNewTerminalSessionHandler) *TerminalSessionHandler
NewTerminalSessionHandler creates a new instance of TerminalSessionHandler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*TerminalSessionHandler) AutoSelectShell ¶ added in v0.6.19
func (_m *TerminalSessionHandler) AutoSelectShell(req *terminal.TerminalSessionRequest) (string, error)
AutoSelectShell provides a mock function with given fields: req
func (*TerminalSessionHandler) Close ¶
func (_m *TerminalSessionHandler) Close(sessionId string, statusCode uint32, msg string)
Close provides a mock function with given fields: sessionId, statusCode, msg
func (*TerminalSessionHandler) GetTerminalSession ¶
func (_m *TerminalSessionHandler) GetTerminalSession(req *terminal.TerminalSessionRequest) (int, *terminal.TerminalMessage, error)
GetTerminalSession provides a mock function with given fields: req
func (*TerminalSessionHandler) RunCmdInRemotePod ¶ added in v0.6.19
func (_m *TerminalSessionHandler) RunCmdInRemotePod(req *terminal.TerminalSessionRequest, cmds []string) (*bytes.Buffer, *bytes.Buffer, error)
RunCmdInRemotePod provides a mock function with given fields: req, cmds
func (*TerminalSessionHandler) ValidateSession ¶
func (_m *TerminalSessionHandler) ValidateSession(sessionId string) bool
ValidateSession provides a mock function with given fields: sessionId
func (*TerminalSessionHandler) ValidateShell ¶ added in v0.6.19
func (_m *TerminalSessionHandler) ValidateShell(req *terminal.TerminalSessionRequest) (bool, error)
ValidateShell provides a mock function with given fields: req