Documentation
¶
Index ¶
- type Client
- func (c *Client) Close() error
- func (c *Client) Connect() error
- func (c *Client) EnsureDirectory(remotePath string) error
- func (c *Client) FileExists(remotePath string) (bool, error)
- func (c *Client) ReadFile(remotePath string) ([]byte, error)
- func (c *Client) RunCommand(command string) (string, error)
- func (c *Client) TestConnection() error
- func (c *Client) WriteFile(remotePath string, content []byte) error
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client handles SSH connections and file operations.
func (*Client) EnsureDirectory ¶
EnsureDirectory ensures a directory exists on the remote server.
func (*Client) FileExists ¶
FileExists checks if a file exists on the remote server.
func (*Client) RunCommand ¶
RunCommand executes a command on the remote server.
func (*Client) TestConnection ¶
TestConnection tests the SSH connection.
Click to show internal directories.
Click to hide internal directories.