package
6.0.0+incompatible
Repository: https://github.com/srcup/u-root.git
Documentation: pkg.go.dev

# Functions

AllEqual compares all metadata and contents of r and s.
ArchiveFromReader reads records from r into a new Archive in memory.
ArchiveFromRecords creates a new Archive from the records.
CharDev returns a character device record at name.
Concat reads files from r one at a time, and writes them to w.
CreateFile creates a local file for f relative to the current working directory.
CreateFileInRoot creates a local file for f relative to rootDir.
Directory returns a directory record at name.
Equal compares the metadata and contents of r and s.
ForEachRecord reads every record from r and applies f.
Format returns the RecordFormat with that name, if it exists.
InMemArchive returns an in-memory file archive.
LSInfoFromRecord converts a Record to be usable with the ls package for listing files.
MakeAllReproducible makes all given records reproducible as in MakeReproducible.
MakeReproducible changes any fields in a Record such that if we run cpio again, with the same files presented to it in the same order, and those files have unchanged contents, the cpio file it produces will be bit-for-bit identical.
NewDedupWriter returns a new deduplicating rw.
Create a new Recorder.
Normalize normalizes path to be relative to /.
Passthrough copies from a RecordReader to a RecordWriter.
ReadAllRecords returns all records in r in the order in which they were read.
StaticFile returns a normal file record.
StaticRecord returns a record with the given contents and metadata.
Symlink returns a symlink record at name pointing to target.
WriteRecords writes multiple records to w.
WriteTrailer writes the trailer record.

# Constants

Trailer is the name of the trailer record.

# Variables

No description provided by the author
Newc is the newc CPIO record format.
TrailerRecord is the last record in any CPIO archive.

# Structs

Archive is an in-memory list of files.
DedupWriter is a RecordWriter that does not write more than one record with the same path.
EOFReader is a RecordReader that converts the Trailer record to io.EOF.
Info holds metadata about files.
Record represents a CPIO record, which represents a Unix file.
No description provided by the author

# Interfaces

A RecordFormat gives readers and writers for dealing with archives from io objects.
A RecordReader reads one record from an archive.
A RecordWriter writes one record to an archive.