client

package
v0.0.0-...-bfe00b6 Latest Latest
Warning

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

Go to latest
Published: May 2, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package client provides functionality to open files through the privileged logs module.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Open

func Open(path string) (*os.File, error)

Open attempts to open a file, and if it fails due to permissions, it opens the file using system-probe if the privileged logs module is available.

func OpenPrivileged

func OpenPrivileged(socketPath string, filePath string) (*os.File, error)

OpenPrivileged opens a file in system-probe and returns the file descriptor This function uses a custom HTTP client that can handle file descriptor transfer

func Stat

func Stat(path string) (os.FileInfo, error)

Stat attempts to stat a file, and if it fails due to permissions, it opens the file using system-probe if the privileged logs module is available and stats the opened file.

Types

This section is empty.

Jump to

Keyboard shortcuts

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