package wim
import "github.com/Microsoft/go-winio/wim"
Package wim implements a WIM file parser.
WIM files are used to distribute Windows file system and container images. They are documented at https://msdn.microsoft.com/en-us/library/windows/desktop/dd861280.aspx.
Index ¶
- type File
- type FileHeader
- type Image
- type ParseError
- type Reader
- type SHA1Hash
- type Stream
- type StreamHeader
Types ¶
type File ¶
type File struct { FileHeader Streams []*Stream // contains filtered or unexported fields }
File represents a file or directory in a WIM image.
func (*File) Open ¶
func (f *File) Open() (io.ReadCloser, error)
Open returns an io.ReadCloser that can be used to read the file's contents.
func (*File) Readdir ¶
Readdir reads the directory entries.
type FileHeader ¶
type FileHeader struct { Name string ShortName string Attributes uint32 SecurityDescriptor []byte CreationTime syscall.Filetime LastAccessTime syscall.Filetime LastWriteTime syscall.Filetime Hash SHA1Hash Size int64 LinkID int64 ReparseTag uint32 ReparseReserved uint32 ReparseStream *Stream }
FileHeader contains file metadata.
type Image ¶
type Image struct {
// contains filtered or unexported fields
}
Image represents an image within a WIM file.
func (*Image) Open ¶
Open parses the image and returns the root directory.
type ParseError ¶
ParseError is returned when the WIM cannot be parsed.
func (*ParseError) Error ¶
func (e *ParseError) Error() string
type Reader ¶
type Reader struct { Image []*Image // The WIM's images. // contains filtered or unexported fields }
Reader provides functions to read a WIM file.
func NewReader ¶
NewReader returns a Reader that can be used to read WIM file data.
func (*Reader) ReadXML ¶
ReadXML reads the XML metadata from a WIM.
type SHA1Hash ¶
type SHA1Hash [20]byte
SHA1Hash contains the SHA1 hash of a file or stream.
type Stream ¶
type Stream struct { StreamHeader // contains filtered or unexported fields }
Stream represents an alternate data stream or reparse point data stream.
func (*Stream) Open ¶
func (s *Stream) Open() (io.ReadCloser, error)
Open returns an io.ReadCloser that can be used to read the stream's contents.
type StreamHeader ¶
StreamHeader contains alternate data stream metadata.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
wim/lzx | Package lzx implements a decompressor for the the WIM variant of the LZX compression algorithm. |
- Version
- v0.3.0
- Published
- Apr 5, 2016
- Platform
- linux/amd64
- Imports
- 11 packages
- Last checked
- 21 minutes ago –
Tools for package owners.