Documentation
¶
Overview ¶
Package host contains host-level test helpers for fleet tests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FilePermissions ¶
FilePermissions represents the permissions of a file on Unix systems.
type Host ¶
type Host struct {
*environments.Host
}
Host wraps an environments.Host with helper methods for fleet tests.
func (*Host) DirExists ¶
DirExists checks if a directory exists on the remote host. Returns true if the path exists and is a directory, false if it doesn't exist or isn't a directory. Only returns an error for actual failures (e.g., permission issues).
func (*Host) GetFilePermissions ¶
func (h *Host) GetFilePermissions(filePath string) (*FilePermissions, error)
GetFilePermissions returns the permissions of a file on Unix systems. Returns an error on Windows as POSIX permissions don't apply.
Click to show internal directories.
Click to hide internal directories.