Documentation
¶
Index ¶
- func New(clientType string, config interface{}) interface{}
- func NewWebSocketUpgrader(w http.ResponseWriter, r *http.Request) (res *websocket.Conn, err error)
- type PGClient
- type SSHClient
- func (c SSHClient) CombinedOutput(target string, str string) ([]byte, error)
- func (c SSHClient) DeleteServiceFromRemoteHost(serviceType string, name string, target string) (err error)
- func (c SSHClient) InstallServiceToRemoteHost(serviceType string, name string, target string, archType string) (err error)
- func (c SSHClient) New(userName string) (subset.SSHClient, error)
- func (c SSHClient) Ping(target string) (res bool, err error)
- func (c SSHClient) Run(target string, str string) error
- func (c SSHClient) RunNoWait(target string, str string) error
- func (c SSHClient) SCP(target, filePath, destinationPath string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewWebSocketUpgrader ¶
NewWebSocketUpgrader - return new upgrade for websocket connect
Types ¶
type SSHClient ¶
type SSHClient struct {
SHHConfig *ssh.ClientConfig
}
SSHClient - ssh client implementation struct, whit ssh config
func (SSHClient) CombinedOutput ¶
CombinedOutput - run comand and wait os code and return combined values(output + error)
func (SSHClient) DeleteServiceFromRemoteHost ¶
func (c SSHClient) DeleteServiceFromRemoteHost(serviceType string, name string, target string) (err error)
DeleteServiceFromRemoteHost - func connect to remote host and delete service
func (SSHClient) InstallServiceToRemoteHost ¶
func (c SSHClient) InstallServiceToRemoteHost(serviceType string, name string, target string, archType string) (err error)
InstallServiceToRemoteHost -
Click to show internal directories.
Click to hide internal directories.