Documentation ¶
Index ¶
- func GetToken(remoteUrl, account string, password string) (string, error)
- type ClientInterface
- type JsonResult
- type SSHClient
- type WebHookClient
- func (c *WebHookClient) Close()
- func (p *WebHookClient) Command(host url.URL, account, password, shell string, channel chan<- []byte)
- func (p *WebHookClient) Connection(remoteUrl string, token string) (*WebHookClient, error)
- func (c *WebHookClient) Read() ([]byte, error)
- func (c *WebHookClient) ReadJSON(v interface{}) error
- func (c *WebHookClient) Send(msg []byte) error
- func (c *WebHookClient) SendJSON(v interface{}) error
- func (c *WebHookClient) SetCloseHandler(h func(code int, text string) error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ClientInterface ¶
type JsonResult ¶
type WebHookClient ¶
type WebHookClient struct {
// contains filtered or unexported fields
}
func (*WebHookClient) Close ¶
func (c *WebHookClient) Close()
func (*WebHookClient) Command ¶
func (p *WebHookClient) Command(host url.URL, account, password, shell string, channel chan<- []byte)
Command 执行命令.
func (*WebHookClient) Connection ¶
func (p *WebHookClient) Connection(remoteUrl string, token string) (*WebHookClient, error)
func (*WebHookClient) Read ¶
func (c *WebHookClient) Read() ([]byte, error)
func (*WebHookClient) ReadJSON ¶
func (c *WebHookClient) ReadJSON(v interface{}) error
func (*WebHookClient) Send ¶
func (c *WebHookClient) Send(msg []byte) error
func (*WebHookClient) SendJSON ¶
func (c *WebHookClient) SendJSON(v interface{}) error
func (*WebHookClient) SetCloseHandler ¶
func (c *WebHookClient) SetCloseHandler(h func(code int, text string) error)
Click to show internal directories.
Click to hide internal directories.