Documentation
¶
Overview ¶
Package privatefiles confines private credential reads and atomic writes to regular 0600 files and owned 0700 directories.
Index ¶
- func Lock(root *os.Root, name string) (*os.File, error)
- func OpenRoot(dir string) (*os.Root, error)
- func OpenSubRoot(parent *os.Root, name string) (*os.Root, error)
- func Read(path string, limit int64) ([]byte, error)
- func ReadAt(root *os.Root, name string, limit int64) ([]byte, error)
- func SyncDirectory(root *os.Root) error
- func Write(root *os.Root, name string, data []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Lock ¶
Lock coordinates independent deployment processes. Closing the returned file releases the OS lock, including when its process exits unexpectedly.
func SyncDirectory ¶
SyncDirectory persists a newly published filename as well as its contents.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.