Documentation
¶
Index ¶
- Constants
- Variables
- type SCP
- func (s *SCP) SCP(ctx context.Context) *SCP
- func (s *SCP) WithDst(path string) *SCP
- func (s *SCP) WithPreserve(preserve bool) *SCP
- func (s *SCP) WithRecursive(recursive bool) *SCP
- func (s *SCP) WithRemoteDst(path string) *SCP
- func (s *SCP) WithRemoteSrc(path string) *SCP
- func (s *SCP) WithSrc(path string) *SCP
- type SSH
- type SSHAdd
- type SSHAgent
Constants ¶
View Source
const SSHAddPath = "ssh-add"
View Source
const SSHAgentPath = "ssh-agent"
Variables ¶
View Source
var SSHAgentAuthSockRe = regexp.MustCompile(`SSH_AUTH_SOCK=(.*?);`)
Functions ¶
This section is empty.
Types ¶
type SCP ¶
type SCP struct {
*process.Executor
Session *session.Session
RemoteDst bool
Dst string
RemoteSrc bool
Src string
Preserve bool
Recursive bool
// contains filtered or unexported fields
}
func (*SCP) WithPreserve ¶
func (*SCP) WithRecursive ¶
func (*SCP) WithRemoteDst ¶
func (*SCP) WithRemoteSrc ¶
type SSH ¶
type SSH struct {
*process.Executor
Session *session.Session
Args []string
Env []string
CommandName string
CommandArgs []string
ExitWhenTunnelFailure bool
// contains filtered or unexported fields
}
func (*SSH) WithExitWhenTunnelFailure ¶
type SSHAdd ¶
type SSHAdd struct {
AgentSettings *session.AgentSettings
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.