connections

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 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

Jump to

Keyboard shortcuts

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