session

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockSession

type MockSession struct {
	mock.Mock
}

MockSession is an autogenerated mock type for the Session type

func NewMockSession added in v0.3.0

func NewMockSession(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockSession

NewMockSession creates a new instance of MockSession. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockSession) Close

func (_m *MockSession) Close()

Close provides a mock function with given fields:

func (*MockSession) ExecuteScript

func (_m *MockSession) ExecuteScript(ctx context.Context, script string) error

ExecuteScript provides a mock function with given fields: ctx, script

type Session

type Session interface {
	ExecuteScript(ctx context.Context, script string) error
	Close()
}

func New

func New(s *ssh.Session) Session

Jump to

Keyboard shortcuts

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