common

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectSSH

func ConnectSSH(log *logger.FunLogger, keyPath, userName, hostUrl string) (*ssh.Client, error)

ConnectSSH establishes an SSH connection with retries. Host key verification uses Trust-On-First-Use (TOFU).

func GetHostURL

func GetHostURL(env *v1alpha1.Environment, nodeName string, preferControlPlane bool) (string, error)

GetHostURL resolves the SSH-reachable host URL for an environment. If nodeName is set, it looks for that specific node. If preferControlPlane is true and no nodeName is set, it prefers a control-plane node. Falls back to the first available node, then single-node properties.

Types

This section is empty.

Jump to

Keyboard shortcuts

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