privatefile

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package privatefile reads bounded, owner-only configuration and secret files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Read

func Read(path string, maxBytes int64) ([]byte, error)

Read reads a regular file whose permission bits deny group and other access. Symlinks are allowed; the opened target is checked. This does not inspect ACLs or establish file ownership. Errors omit paths and file contents so callers can safely add their own configuration context.

Types

This section is empty.

Jump to

Keyboard shortcuts

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