connections

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

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.

Jump to

Keyboard shortcuts

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