Documentation ¶
Index ¶
- Constants
- func AssertRemoteTestSSHFile(t *testing.T, args SSHArgs, filePath string)
- func CopyFrom(args SSHArgs, agent Agent, rootDir string, sourcePath string) error
- func CopyTo(args SSHArgs, agent Agent, sourcePath, targetPath string) error
- func MakeLocalTestFile(t *testing.T, filePath, content string)
- func MakeRemoteTestSSHDir(t *testing.T, args SSHArgs, filePath string)
- func MakeRemoteTestSSHFile(t *testing.T, args SSHArgs, filePath, content string)
- func RemoveLocalTestFile(t *testing.T, fileName string)
- func RemoveRemoteTestSSHFile(t *testing.T, args SSHArgs, fileName string)
- func Run(args SSHArgs, agent Agent, cmd string) (string, error)
- func RunRead(args SSHArgs, agent Agent, cmd string) (io.Reader, error)
- type Agent
- type ProxyJumpArgs
- type SSHArgs
Constants ¶
View Source
const ( AgentPidIdentifier = "SSH_AGENT_PID" AuthSockIdentifier = "SSH_AUTH_SOCK" )
ssh-agent constant identifiers
Variables ¶
This section is empty.
Functions ¶
func AssertRemoteTestSSHFile ¶ added in v0.3.2
func CopyFrom ¶ added in v0.3.0
CopyFrom copies one or more files using SCP from remote host and returns the paths of files that were successfully copied.
func CopyTo ¶ added in v0.3.2
CopyTo copies one or more files using SCP from local machine to remote host.
func MakeLocalTestFile ¶ added in v0.3.2
func MakeRemoteTestSSHDir ¶ added in v0.3.2
func MakeRemoteTestSSHFile ¶ added in v0.3.2
func RemoveLocalTestFile ¶ added in v0.3.2
func RemoveRemoteTestSSHFile ¶ added in v0.3.2
Types ¶
type Agent ¶ added in v0.3.0
type Agent interface { AddKey(keyPath string) error RemoveKey(keyPath string) error Stop() error GetEnvVariables() string }
func StartAgent ¶ added in v0.3.0
StartAgent starts the ssh-agent process and returns the SSH authentication parameters.
type ProxyJumpArgs ¶ added in v0.3.0
Click to show internal directories.
Click to hide internal directories.