host

package
v0.73.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 23, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

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

type FilePermissions struct {
	Mode  string
	Owner string
	Group string
}

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 New

func New(host *environments.Host) *Host

New creates a new Host wrapper.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL