package
0.0.0-20240720002214-37b2b8227b91
Repository: https://github.com/progrium/go-netstack.git
Documentation: pkg.go.dev
# Functions
CompressionLevelFromMetadata returns image compression type stored in the metadata.
CompressionLevelFromString parses a string into the CompressionLevel.
MetadataUnsafe reads out the metadata from a state file without verifying any HMAC.
NewReader returns a reader for a statefile.
NewWriter returns a state data writer for a statefile.
# Constants
CompressionLevelFlateBestSpeed represents flate algorithm in best-speed mode.
CompressionLevelNone represents the absence of any compression on an image.
# Variables
ErrBadMagic is returned if the header does not match.
ErrInvalidFlags is returned if passed flags set is invalid.
ErrInvalidMetadataLength is returned if the metadata length is too large.
ErrMetadataInvalid is returned if passed metadata is invalid.
ErrMetadataMissing is returned if the state file is missing mandatory metadata.
# Interfaces
WriteCloser is an io.Closer and wire.Writer.
# Type aliases
CompressionLevel is the image compression level.