Documentation ¶
Index ¶
- type Client
- func (c *Client) Close() error
- func (c *Client) ExecuteCommand(command value.Command) ([]byte, error)
- func (c *Client) FileExists(path string) bool
- func (c *Client) FlushCaches() error
- func (c *Client) InstallPackageAt(path string) error
- func (c *Client) InstallPackages(packages ...string) error
- func (c *Client) RemoveDirectory(path string) error
- func (c *Client) RemoveFile(path string) error
- func (c *Client) SecureDownload(source, sink string) error
- func (c *Client) SecureUpload(source, sink string) error
- func (c *Client) Sync() error
- func (c *Client) UninstallPackages(packages ...string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is thin wrapper around an ssh client which exposes some useful functionality required when setting up/performing benchmarks.
func (*Client) ExecuteCommand ¶
ExecuteCommand is a wrapper with executes the given command on the remote machine.
func (*Client) FileExists ¶
FileExists returns a boolean indicating whether a file with the given path exists on the remote machine.
func (*Client) FlushCaches ¶
FlushCaches sync then flushes the caches on the remote machine; this allows for more consistent benchmark results.
func (*Client) InstallPackageAt ¶
InstallPackageAt installs the package at the provided path on the remote machine.
func (*Client) InstallPackages ¶
InstallPackages uses the platform specific package manager to install the given package.
func (*Client) RemoveDirectory ¶
RemoveDirectory removes the directory at the given path on the remote machine.
func (*Client) RemoveFile ¶
RemoveFile removes the file at the given path on the remote machine.
func (*Client) SecureDownload ¶
SecureDownload emulates the 'scp' command by downloaded the file at the provided path to the local machine.
func (*Client) SecureUpload ¶
SecureUpload emulates the 'scp' command by uploading the file at the provided path to the remote server.
func (*Client) Sync ¶
Sync runs 'sync' on the remote machine ensuring all dirty package are written to disk.
func (*Client) UninstallPackages ¶
UninstallPackages uses the platform specific package manager to uninstall the given package.