Documentation
¶
Index ¶
- type CLIWrapper
- func (c *CLIWrapper) CleanupCLI(cliPath string) error
- func (c *CLIWrapper) DownloadCLIFile(url, dir string) (string, error)
- func (c *CLIWrapper) ExecuteCommand(cliPath string, args ...string) (string, error)
- func (c *CLIWrapper) GetAbsolutePath(cliPath string) (string, error)
- func (c *CLIWrapper) GetWritableDirectory(baseDirectory string) string
- func (c *CLIWrapper) ValidateCLIFileHash(cliPath, expectedHash string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CLIWrapper ¶
type CLIWrapper struct { }
func (*CLIWrapper) CleanupCLI ¶
func (c *CLIWrapper) CleanupCLI(cliPath string) error
CleanupCLI removes the downloaded CLI tool.
func (*CLIWrapper) DownloadCLIFile ¶
func (c *CLIWrapper) DownloadCLIFile(url, dir string) (string, error)
func (*CLIWrapper) ExecuteCommand ¶
func (c *CLIWrapper) ExecuteCommand(cliPath string, args ...string) (string, error)
ExecuteCommand runs the specified CLIWrapper command with arguments and returns its output
func (*CLIWrapper) GetAbsolutePath ¶
func (c *CLIWrapper) GetAbsolutePath(cliPath string) (string, error)
func (*CLIWrapper) GetWritableDirectory ¶
func (c *CLIWrapper) GetWritableDirectory(baseDirectory string) string
GetWritableDirectory attempts to find a writable directory, defaults to the system temp directory if specified directory is not writable.
func (*CLIWrapper) ValidateCLIFileHash ¶
func (c *CLIWrapper) ValidateCLIFileHash(cliPath, expectedHash string) (bool, error)
Click to show internal directories.
Click to hide internal directories.