Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArkConnection ¶
type ArkConnection interface {
// Connect establishes a connection using the provided connection details.
Connect(connectionDetails *connectionsmodels.ArkConnectionDetails) error
// Disconnect closes the connection.
Disconnect() error
// SuspendConnection suspends the connection, making any command unable to run but will not close the connection
SuspendConnection() error
// RestoreConnection restores the connection, making commands runnable again
RestoreConnection() error
// IsSuspended checks if the connection is suspended.
IsSuspended() bool
// IsConnected checks if the connection is established.
IsConnected() bool
// RunCommand executes a command on the connected system.
RunCommand(command *connectionsmodels.ArkConnectionCommand) (*connectionsmodels.ArkConnectionResult, error)
}
ArkConnection is an interface that defines methods for managing Ark connections.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package ssh provides Secure Shell (SSH) connection capabilities for the ARK SDK Golang.
|
Package ssh provides Secure Shell (SSH) connection capabilities for the ARK SDK Golang. |
|
Package winrm provides Windows Remote Management (WinRM) connection capabilities for the ARK SDK Golang.
|
Package winrm provides Windows Remote Management (WinRM) connection capabilities for the ARK SDK Golang. |
Click to show internal directories.
Click to hide internal directories.