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: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArkConnectionCommand

type ArkConnectionCommand struct {
	Command          string                 `json:"command" mapstructure:"command"`                       // The command to actually run
	ExpectedRC       int                    `json:"expected_rc" mapstructure:"expected_rc"`               // Expected return code
	ExtraCommandData map[string]interface{} `json:"extra_command_data" mapstructure:"extra_command_data"` // Extra data for the command
}

ArkConnectionCommand represents a command to be executed on a remote server.

type ArkConnectionCredentials

type ArkConnectionCredentials struct {
	User               string `json:"user" mapstructure:"user"`
	Password           string `json:"password" mapstructure:"password"`
	PrivateKeyFilepath string `json:"private_key_filepath" mapstructure:"private_key_filepath"`
	PrivateKeyContents string `json:"private_key_contents" mapstructure:"private_key_contents"`
}

ArkConnectionCredentials represents the credentials for a connection.

type ArkConnectionDetails

type ArkConnectionDetails struct {
	Address           string                    `json:"address" mapstructure:"address"`
	Port              int                       `json:"port" mapstructure:"port"`
	ConnectionType    ArkConnectionType         `json:"connection_type" mapstructure:"connection_type"`
	Credentials       *ArkConnectionCredentials `json:"credentials" mapstructure:"credentials"`
	ConnectionData    interface{}               `json:"connection_data" mapstructure:"connection_data"`
	ConnectionRetries int                       `json:"connection_retries" mapstructure:"connection_retries"`
	RetryTickPeriod   int                       `json:"retry_tick_period" mapstructure:"retry_tick_period"`
}

ArkConnectionDetails represents the details of a connection.

type ArkConnectionResult

type ArkConnectionResult struct {
	Stdout string `json:"stdout" mapstructure:"stdout"`
	Stderr string `json:"stderr" mapstructure:"stderr"`
	RC     int    `json:"rc" mapstructure:"rc"`
}

ArkConnectionResult represents the result of a connection attempt.

type ArkConnectionType

type ArkConnectionType string

ArkConnectionType represents the type of connection.

const (
	SSH   ArkConnectionType = "SSH"
	WinRM ArkConnectionType = "WinRM"
)

ArkConnectionType values.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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