winrm

package
v1.0.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// WinRMHTTPSPort is the default port for WinRM HTTPS connections.
	WinRMHTTPSPort = 5986
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ArkWinRMConnection

type ArkWinRMConnection struct {
	connections.ArkConnection
	// contains filtered or unexported fields
}

ArkWinRMConnection is a struct that implements the ArkConnection interface for WinRM connections.

func NewArkWinRMConnection

func NewArkWinRMConnection() *ArkWinRMConnection

NewArkWinRMConnection creates a new instance of ArkWinRMConnection.

func (*ArkWinRMConnection) Connect

func (c *ArkWinRMConnection) Connect(connectionDetails *connectionsmodels.ArkConnectionDetails) error

Connect establishes a WinRM connection using the provided connection details.

func (*ArkWinRMConnection) Disconnect

func (c *ArkWinRMConnection) Disconnect() error

Disconnect closes the WinRM connection.

func (*ArkWinRMConnection) IsConnected

func (c *ArkWinRMConnection) IsConnected() bool

IsConnected checks if the WinRM connection is established.

func (*ArkWinRMConnection) IsSuspended

func (c *ArkWinRMConnection) IsSuspended() bool

IsSuspended checks if the WinRM connection is suspended.

func (*ArkWinRMConnection) RestoreConnection

func (c *ArkWinRMConnection) RestoreConnection() error

RestoreConnection restores the WinRM connection.

func (*ArkWinRMConnection) RunCommand

RunCommand executes a command on the remote machine using WinRM. It handles command splitting if the command exceeds the maximum size. It also manages the creation of a temporary file for large commands. The command is executed in PowerShell and the output is returned.

func (*ArkWinRMConnection) SuspendConnection

func (c *ArkWinRMConnection) SuspendConnection() error

SuspendConnection suspends the WinRM connection.

Jump to

Keyboard shortcuts

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