Categorygithub.com/cavaliergopher/cpio
modulepackage
1.0.1
Repository: https://github.com/cavaliergopher/cpio.git
Documentation: pkg.go.dev

# README

cpio

Go Reference Build Status Go Report Card

Package cpio provides readers and writers for the CPIO archive file format.

Currently, only the SVR4 (New ASCII) format is supported, both with and without checksums.

Copyright 2021, Ryan Armstrong [email protected]

# Functions

FileInfoHeader creates a partially-populated Header from fi.
NewHash returns a new hash.Hash32 for computing SVR4 checksums.
NewReader creates a new Reader reading from r.
NewWriter creates a new Writer writing to w.

# Constants

Unix permission bits.
Set gid.
Set uid.
Save text (sticky bit).
Mask for the type bits.
Block device node.
Character device node.
Directory.
FIFO node.
TypeReg indicates a regular file.
Socket.
Symbolic link.

# Variables

ErrHeader indicates there was an error decoding a CPIO header entry.
ErrWriteAfterClose indicates that an attempt was made to write to the CPIO archive after it was closed.
ErrWriteTooLong indicates that an attempt was made to write more than Header.Size bytes to the current file.

# Structs

A Header represents a single header in a CPIO archive.
Reader provides sequential access to the contents of a CPIO archive.
Writer provides sequential writing of a CPIO archive.

# Type aliases

A FileMode represents a file's mode and permission bits.