MCPcopy Create free account
hub / github.com/devnullvoid/pvetui / ExecuteLXCShell

Function ExecuteLXCShell

internal/ssh/client.go:165–167  ·  view source on GitHub ↗

ExecuteLXCShell opens an interactive session to an LXC container using 'pct enter'. This is a convenience function that uses the default executor and context. For containers that require special handling (like NixOS), use ExecuteLXCShellWithVM. Parameters: - user: SSH username for authentication t

(user, nodeIP string, vmID int, jumphost config.SSHJumpHost)

Source from the content-addressed store, hash-verified

163//
164// Returns an error if the connection fails.
165func ExecuteLXCShell(user, nodeIP string, vmID int, jumphost config.SSHJumpHost) error {
166 return ExecuteLXCShellWith(context.Background(), NewDefaultExecutor(), user, nodeIP, vmID, nil, jumphost)
167}
168
169// ExecuteLXCShellWithVM opens an interactive session to an LXC container with automatic OS detection.
170//

Callers

nothing calls this directly

Calls 2

ExecuteLXCShellWithFunction · 0.85
NewDefaultExecutorFunction · 0.85

Tested by

no test coverage detected