Documentation
¶
Overview ¶
Package sshfixture starts ephemeral OpenSSH server containers for the integration tests. It exposes one host and an optional jump-host pair so the examples can exercise remote.Command and CopyToRemote without any cloud credentials.
Index ¶
Constants ¶
View Source
const User = "testuser"
User is the SSH login on every fixture container.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Proxy ¶
type Proxy struct {
Proxy Server
Target Server // Host is a Docker-network DNS name, Port is 2222.
PrivateKeyPEM string
}
Proxy describes a jump-host scenario: the test connects to Proxy from the host, and the proxy reaches Target via a Docker network alias. Both servers share the same SSH key.
Click to show internal directories.
Click to hide internal directories.