Documentation
¶
Index ¶
- func RunGobStreamer[T any](c *Client, cmd string, stdin io.Reader, callback func(T)) error
- type Client
- func (c *Client) Close() error
- func (c *Client) Run(cmd string) (string, error)
- func (c *Client) RunLineStreamer(cmd string, toWrite []byte, readCB func([]byte)) error
- func (c *Client) RunWriteRead(cmd string, toWrite []byte) ([]byte, error)
- func (c *Client) UploadBytes(data []byte, remote string, perm os.FileMode) error
- func (c *Client) UploadBytesXZ(data []byte, remote string, perm os.FileMode) error
- func (c *Client) UploadFile(local, remote string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunGobStreamer ¶
RunGobStreamer runs command over SSH, while parsing its stdout as gob stream. No method, because can't use generics on methods. Do we actually need generics to make the ssh package unaware of actual objects being passed?
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) RunLineStreamer ¶
func (*Client) RunWriteRead ¶
func (*Client) UploadBytes ¶
func (*Client) UploadBytesXZ ¶ added in v0.1.2
func (*Client) UploadFile ¶
Click to show internal directories.
Click to hide internal directories.