Documentation ¶
Index ¶
- Constants
- func AvailableCheck(ip string) (isReachable, havePermission bool)
- func MustMakeRootAvailableM1(remote RemoteServer)
- func MustRpcSsh(remote RemoteServer, cmd ...string) []byte
- func MustRpcSshDefault(ip string, cmd ...string) []byte
- func MustRpcSshDefaultWithBashContent(ip string, bash string) []byte
- func MustScpToRemote(remote *RemoteServer)
- func MustScpToRemoteDefault(ip, localFileRealPath, remoteFileRealPath string)
- func MustSshCopyidWithIpAndCertContent(ip string, certContent string)
- func MustSshInstallRootCertification(req MustSshInstallRootCertificationRequest)
- func RpcSsh(remote RemoteServer, cmd ...string) (stdout []byte, err error)
- func RpcSshDefault(ip string, cmd ...string) (b []byte, err error)
- func Scp(req ScpReq) error
- func ScpToRemote(remote *RemoteServer) error
- func ScpToRemoteDefault(ip, localFileRealPath, remoteFileRealPath string) error
- func SshCopyId(remote RemoteServer)
- type MustSshInstallRootCertificationRequest
- type RemoteServer
- type ScpReq
Constants ¶
View Source
const ScpCmdPrefix = "scp" + SshOption
View Source
const SshOption = " -C -o StrictHostKeyChecking=no -o PasswordAuthentication=no "
Variables ¶
This section is empty.
Functions ¶
func AvailableCheck ¶
func MustMakeRootAvailableM1 ¶
func MustMakeRootAvailableM1(remote RemoteServer)
func MustRpcSsh ¶
func MustRpcSsh(remote RemoteServer, cmd ...string) []byte
func MustRpcSshDefault ¶
func MustScpToRemote ¶
func MustScpToRemote(remote *RemoteServer)
func MustScpToRemoteDefault ¶
func MustScpToRemoteDefault(ip, localFileRealPath, remoteFileRealPath string)
func MustSshInstallRootCertification ¶
func MustSshInstallRootCertification(req MustSshInstallRootCertificationRequest)
func ScpToRemote ¶
func ScpToRemote(remote *RemoteServer) error
func ScpToRemoteDefault ¶
func SshCopyId ¶
func SshCopyId(remote RemoteServer)
Types ¶
Click to show internal directories.
Click to hide internal directories.