Versions in this module Expand all Collapse all v0 v0.2.0 Aug 8, 2026 Changes in this version + var ErrCorrupt = errors.New("wim: corrupt WIM") + var ErrNotWIM = errors.New("wim: not a WIM file") + var ErrUnsupported = errors.New("wim: unsupported WIM") + type Image struct + func (im *Image) FS() fs.FS + func (im *Image) Index() int + func (im *Image) Info() ImageInfo + type Reader struct + func Open(r io.ReaderAt, size int64) (*Reader, error) + func OpenBytes(b []byte) (*Reader, error) + func (rd *Reader) Boot() (*Image, error) + func (rd *Reader) Image(i int) (*Image, error) + func (rd *Reader) Images() []ImageInfo v0.1.0 Aug 3, 2026 Changes in this version + const DefaultChunkSize + var ErrChunkSize = errors.New("wim: ChunkSize must be a power of two no larger than the LZX window") + var ErrNoSecurity = errors.New(...) + func Capture(ctx context.Context, dst io.WriteSeeker, src fs.FS, info ImageInfo, ...) error + func CaptureDir(ctx context.Context, dir, out string, info ImageInfo, opts Options) error + type Arch int + const ArchAMD64 + const ArchIntel + type Compression int + const CompressLZX + const CompressNone + type ImageInfo struct + Boot bool + Description string + Name string + Windows *WindowsInfo + type Options struct + ChunkSize int + Compression Compression + Concurrency int + GUID [16]byte + Security SecurityFunc + Timestamp time.Time + type SecurityFunc func(path string, d fs.DirEntry) []byte + func UniformSecurity(sd []byte) SecurityFunc + type Version struct + Build int + Major int + Minor int + SPBuild int + SPLevel int + type WindowsInfo struct + Arch Arch + SystemRoot string + Version Version + type Writer struct + func NewWriter(dst io.WriteSeeker, opts Options) *Writer + func (w *Writer) AddImage(ctx context.Context, src fs.FS, info ImageInfo) error + func (w *Writer) Close() error