session

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2023 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 (*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