Documentation
¶
Index ¶
- Constants
- func CopyFrom(args SSHArgs, agent Agent, rootDir string, sourcePath string) error
- func MakeTestSSHFile(t *testing.T, args SSHArgs, filePath, content string)
- func RemoveTestSSHFile(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 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 MakeTestSSHFile ¶ added in v0.3.0
func RemoveTestSSHFile ¶ added in v0.3.0
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.