Search
Preparing search index...
The search index is not available
Unraid API Client - v0.17.0
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Unraid API Client - v0.17.0
SSHExecutor
Class SSHExecutor
SSHExecutor built for the usage with nodejs. Under the hood it uses
ssh2
Hierarchy
Executor
<
SSHConfig
>
SSHExecutor
Index
Constructors
constructor
Properties
config
Methods
connect
disconnect
execute
executeSSH
execute
Stream
execute
StreamSSH
Constructors
constructor
new SSHExecutor
(
config
:
SSHConfig
)
:
SSHExecutor
Parameters
config:
SSHConfig
Returns
SSHExecutor
Properties
Readonly
config
config
:
SSHConfig
Methods
connect
connect
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
disconnect
disconnect
(
)
:
void
Returns
void
execute
execute
(
command
:
string
)
:
Promise
<
IExecuteResult
>
execute
(
__namedParameters
:
IExecute
)
:
Promise
<
IExecuteResult
>
execute
(
command
:
string
|
IExecute
)
:
Promise
<
IExecuteResult
>
Parameters
command:
string
Returns
Promise
<
IExecuteResult
>
Parameters
__namedParameters:
IExecute
Returns
Promise
<
IExecuteResult
>
Parameters
command:
string
|
IExecute
Returns
Promise
<
IExecuteResult
>
executeSSH
executeSSH
(
command
:
string
|
IExecute
)
:
Promise
<
IExecuteResult
>
Parameters
command:
string
|
IExecute
Returns
Promise
<
IExecuteResult
>
execute
Stream
execute
Stream
(
command
:
string
|
IExecute
)
:
Promise
<
[
EventEmitter
,
CancelFunction
,
Promise
<
IExecuteStreamResult
>
]
>
Parameters
command:
string
|
IExecute
Returns
Promise
<
[
EventEmitter
,
CancelFunction
,
Promise
<
IExecuteStreamResult
>
]
>
execute
StreamSSH
execute
StreamSSH
(
command
:
string
|
IExecute
)
:
Promise
<
[
EventEmitter
,
CancelFunction
,
Promise
<
IExecuteStreamResult
>
]
>
Parameters
command:
string
|
IExecute
Returns
Promise
<
[
EventEmitter
,
CancelFunction
,
Promise
<
IExecuteStreamResult
>
]
>
Exports
SSHExecutor
constructor
config
connect
disconnect
execute
executeSSH
execute
Stream
execute
StreamSSH
Generated using
TypeDoc
SSHExecutor built for the usage with nodejs. Under the hood it uses ssh2