package
0.0.0-20241001140320-1cfc79ecf30e
Repository: https://github.com/nix-community/go-nix.git
Documentation: pkg.go.dev

# Packages

It is provided on cache.nixos.org, and more generally, written when write-nar-listing=1 is passed while copying build results into a binary cache.

# Functions

DumpPath will serialize a path on the local file system to NAR format, and write it to the passed writer.
DumpPathFilter will serialize a path on the local file system to NAR format, and write it to the passed writer, filtering out any files where the filter function returns false.
IsValidNodeName checks the name of a node it may not contain null bytes or slashes.
NewReader creates a new Reader reading from r.
NewWriter creates a new Writer writing to w.
PathIsLexicographicallyOrdered checks if two paths are lexicographically ordered component by component.

# Constants

TypeDirectory represents a directory entry.
TypeRegular represents a regular file.
TypeSymlink represents a file symlink.

# Structs

Header represents a single header in a NAR archive.
Reader providers sequential access to the contents of a NAR archive.
Writer provides sequential writing of a NAR (Nix Archive) file.

# Type aliases

Enum of all the node types possible.
SourceFilterFunc is the interface for creating source filters.