Documentation
¶
Index ¶
- Constants
- Variables
- func SetAssembly(data []byte)
- type API
- func (api *API) AddEmptyImage(ctx context.Context, wim Pointer, name string) (int, error)
- func (api *API) CreateDecompressor(ctx context.Context, ctype, chunkLen int32) (Pointer, error)
- func (api *API) CreateNewWIM(ctx context.Context, ctype CompressionType) (Pointer, error)
- func (api *API) Decompress(ctx context.Context, dec Pointer, inp, out []byte) error
- func (api *API) DeleteImage(ctx context.Context, wim Pointer, iid int32) error
- func (api *API) ExportImage(ctx context.Context, swim Pointer, siid int, dwim Pointer, name, desc *string, ...) (err error)
- func (api *API) FreeDecompressor(ctx context.Context, dec Pointer) (err error)
- func (api *API) FreeWIM(ctx context.Context, wim Pointer) error
- func (api *API) IterateDirTree(ctx context.Context, wim Pointer, iid int32, path string, flags int32, ...) error
- func (api *API) OpenWIM(ctx context.Context, path string, flags int32) (Pointer, error)
- func (api *API) OverwriteWIM(ctx context.Context, wim Pointer, flags int32, threads uint32) error
- func (api *API) PrintErrors(ctx context.Context) error
- func (api *API) PrintHeader(ctx context.Context, wim Pointer) error
- func (api *API) ResolveImage(ctx context.Context, wim Pointer, nameOrIID string) (int32, error)
- func (api *API) SetImageProperty(ctx context.Context, wim Pointer, iid int, name string, value *string) error
- func (api *API) UpdateImage(ctx context.Context, wim Pointer, iid int32, flags int32, ...) error
- func (api *API) WriteWIM(ctx context.Context, wim Pointer, path string, iid int32, flags int32, ...) error
- type CompressionType
- type DirEntry
- type Instance
- type IterateDirTreeCb
- type ModuleError
- type Pointer
- type ResourceOwner
- type StreamEntry
- type UpdateAddCommand
- type UpdateDeleteCommand
- type UpdateOp
- type UpdateRenameCommand
- type WimlibError
- type WriterToProvider
Constants ¶
View Source
const ( IterateDirTreeRecursive = 0x00000001 IterateDirTreeChildren = 0x00000002 IterateDirTreeResourcesNeeded = 0x00000004 )
View Source
const ( ExportBoot = 1 << iota ExportNoNames ExportNoDescriptions ExportGift )
View Source
const ( AddNtfs int32 = 1 << iota AddDereference AddVerbose AddBoot AddUnixData AddNoAcls AddStrictAcls AddExcludeVerbose AddRPFix AddNoRPFix AddNoUnsupportedExclude AddWinConfig AddWimBoot AddNoReplace AddTestFileExclusion AddSnapshot AddFilePathsUnneeded )
View Source
const ( DeleteFlagForce int32 = 1 << iota DeleteFlagRecursive )
View Source
const ( OpenCheckIntegrity int32 = 1 << iota OpenErrorIfSplit OpenWriteAccess )
View Source
const ( WriteCheckIntegrity int32 = 1 << iota WriteNoCheckIntegrity WritePipable WriteNotPipable WriteRecompress WriteFsync WriteRebuild WriteSoftDelete WriteIgnoreReadonlyFlag WriteSkipExternalWims WriteStreamsOk WriteRetainGuid WriteSolid WriteSendDoneWithFileMessages WriteNoSolidSort WriteUnsafeCompact )
View Source
const AllImages = -1
View Source
const PointerSize = 4 // TODO: Oof.
View Source
const WimlibGuidLen = 16
Variables ¶
View Source
var ( ErrNoMemory = ModuleError("out of memory") ErrOOBRead = ModuleError("out of bounds read") ErrOOBWrite = ModuleError("out of bounds write") ErrNoFunction = ModuleError("missing function") )
View Source
var ( ErrAlreadyLocked = WimlibError(1) ErrDecompression = WimlibError(2) ErrFuse = WimlibError(6) ErrGlobHadNoMatches = WimlibError(8) ErrImageCount = WimlibError(10) ErrImageNameCollision = WimlibError(11) ErrInsufficientPrivileges = WimlibError(12) ErrIntegrity = WimlibError(13) ErrInvalidCaptureConfig = WimlibError(14) ErrInvalidChunkSize = WimlibError(15) ErrInvalidCompressionType = WimlibError(16) ErrInvalidHeader = WimlibError(17) ErrInvalidImage = WimlibError(18) ErrInvalidIntegrityTable = WimlibError(19) ErrInvalidLookupTableEntry = WimlibError(20) ErrInvalidMetadataResource = WimlibError(21) ErrInvalidOverlay = WimlibError(23) ErrInvalidParam = WimlibError(24) ErrInvalidPartNumber = WimlibError(25) ErrInvalidPipableWim = WimlibError(26) ErrInvalidReparseData = WimlibError(27) ErrInvalidResourceHash = WimlibError(28) ErrInvalidUtf16String = WimlibError(30) ErrInvalidUtf8String = WimlibError(31) ErrIsDirectory = WimlibError(32) ErrIsSplitWim = WimlibError(33) ErrLink = WimlibError(35) ErrMetadataNotFound = WimlibError(36) ErrMkdir = WimlibError(37) ErrMqueue = WimlibError(38) ErrNoMem = WimlibError(39) ErrNotDir = WimlibError(40) ErrNotEmpty = WimlibError(41) ErrNotARegularFile = WimlibError(42) ErrNotAWimFile = WimlibError(43) ErrNotPipable = WimlibError(44) ErrNoFilename = WimlibError(45) ErrNtfs3G = WimlibError(46) ErrOpen = WimlibError(47) ErrOpenDir = WimlibError(48) ErrPathDoesNotExist = WimlibError(49) ErrRead = WimlibError(50) ErrReadLink = WimlibError(51) ErrRename = WimlibError(52) ErrReparsePointFixupFailed = WimlibError(54) ErrResourceNotFound = WimlibError(55) ErrResourceOrder = WimlibError(56) ErrSetAttributes = WimlibError(57) ErrSetReparseData = WimlibError(58) ErrSetSecurity = WimlibError(59) ErrSetShortName = WimlibError(60) ErrSetTimestamps = WimlibError(61) ErrSplitInvalid = WimlibError(62) ErrStat = WimlibError(63) ErrUnexpectedEndOfFile = WimlibError(65) ErrUnicodeStringNotRepresentable = WimlibError(66) ErrUnknownVersion = WimlibError(67) ErrUnsupported = WimlibError(68) ErrUnsupportedFile = WimlibError(69) ErrWimIsReadonly = WimlibError(71) ErrWrite = WimlibError(72) ErrXml = WimlibError(73) ErrWimIsEncrypted = WimlibError(74) ErrWIMBoot = WimlibError(75) ErrAbortedByProgress = WimlibError(76) ErrUnknownProgressStatus = WimlibError(77) ErrMknod = WimlibError(78) ErrMountedImageIsBusy = WimlibError(79) ErrNotAMountPoint = WimlibError(80) ErrNotPermittedToUnmount = WimlibError(81) ErrFveLockedVolume = WimlibError(82) ErrUnableToReadCaptureConfig = WimlibError(83) ErrWimIsIncomplete = WimlibError(84) ErrCompactionNotPossible = WimlibError(85) ErrImageHasMultipleReferences = WimlibError(86) ErrDuplicateExportedImage = WimlibError(87) ErrConcurrentModificationDetected = WimlibError(88) ErrSnapshotFailure = WimlibError(89) ErrInvalidXAttr = WimlibError(90) ErrSetXAttr = WimlibError(91) )
Functions ¶
func SetAssembly ¶
func SetAssembly(data []byte)
SetAssembly sets the wimlib WebAssembly binary to use.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
func (*API) AddEmptyImage ¶
func (*API) CreateDecompressor ¶
func (*API) CreateNewWIM ¶
func (*API) Decompress ¶
func (*API) DeleteImage ¶
func (*API) ExportImage ¶
func (*API) FreeDecompressor ¶
func (*API) IterateDirTree ¶
func (*API) OverwriteWIM ¶
func (*API) ResolveImage ¶
func (*API) SetImageProperty ¶
func (*API) UpdateImage ¶
type CompressionType ¶
type CompressionType int32
const ( CompressionTypeXPRESS CompressionType = iota + 1 CompressionTypeLZX CompressionTypeLZMS )
type DirEntry ¶
type DirEntry struct { Packed dirEntryPacked // contains filtered or unexported fields }
func (*DirEntry) StreamsNum ¶
type IterateDirTreeCb ¶
type ModuleError ¶
type ModuleError string
func (ModuleError) Error ¶
func (e ModuleError) Error() string
type StreamEntry ¶
type StreamEntry struct { Packed streamEntryPacked // contains filtered or unexported fields }
type UpdateAddCommand ¶
type UpdateDeleteCommand ¶
type UpdateRenameCommand ¶
type WimlibError ¶
type WimlibError int
func (WimlibError) Error ¶
func (err WimlibError) Error() string
Source Files
¶
Click to show internal directories.
Click to hide internal directories.