Help us shape the future of Go! Take the 2026 Go Developer Survey

mocks

package
v0.6.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 23, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TerminalSessionHandler

type TerminalSessionHandler struct {
	mock.Mock
}

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

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

ValidateShell provides a mock function with given fields: req

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL