Documentation
¶
Index ¶
- Variables
- func DetectWindowsArchitecture(desc string) string
- func DetectWindowsVersion(desc string) string
- func MatchClassGuid(r io.Reader) (classGuid string)
- func ParseDriverClassGuid(driverName, infPath string) (string, error)
- type Aliases
- type DriverInfo
- type RepackUtil
- func (r *RepackUtil) GetWimInfo(wimFile string) (WimInfo, error)
- func (r *RepackUtil) InjectDrivers(windowsRootPath string, driverPath string) error
- func (r *RepackUtil) InjectDriversIntoWim(wimFile string, info WimInfo, driverPath string) error
- func (r *RepackUtil) SetWindowsVersionArchitecture(windowsVersion string, windowsArchitecture string)
- type WimInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var ( SupportedWindowsVersions = []string{ "w11", "w10", "w8", "w7", "2k19", "2k12", "2k16", "2k22", "2k25", "2k3", "2k8", "xp", "2k12r2", "2k8r2", "w8.1", } SupportedWindowsArchitectures = []string{ "amd64", "ARM64", "x86", } )
View Source
var Drivers = map[string]DriverInfo{
"Balloon": driverBalloon,
"NetKVM": driverNetKVM,
"vioinput": driverVioinput,
"viorng": driverViorng,
"vioscsi": driverVioscsi,
"vioserial": driverVioserial,
"viofs": driverViofs,
"viogpudo": driverVioGPUDo,
"viostor": driverViostor,
"viosock": driverViosock,
}
Drivers contains all supported drivers.
Functions ¶
func DetectWindowsVersion ¶
func MatchClassGuid ¶
func ParseDriverClassGuid ¶
Types ¶
type Aliases ¶
func (Aliases) MatchString ¶
type DriverInfo ¶
type DriverInfo struct {
PackageName string
SoftwareRegistry string
SystemRegistry string
DriversRegistry string
}
DriverInfo contains driver specific information.
type RepackUtil ¶
type RepackUtil struct {
// contains filtered or unexported fields
}
func NewRepackUtil ¶
NewRepackUtil returns a new RepackUtil object.
func (*RepackUtil) GetWimInfo ¶
func (r *RepackUtil) GetWimInfo(wimFile string) (WimInfo, error)
GetWimInfo returns information about the specified wim file.
func (*RepackUtil) InjectDrivers ¶
func (r *RepackUtil) InjectDrivers(windowsRootPath string, driverPath string) error
InjectDrivers injects drivers from driverPath into the windowsRootPath.
func (*RepackUtil) InjectDriversIntoWim ¶
func (r *RepackUtil) InjectDriversIntoWim(wimFile string, info WimInfo, driverPath string) error
InjectDriversIntoWim will inject drivers into the specified wim file.
func (*RepackUtil) SetWindowsVersionArchitecture ¶
func (r *RepackUtil) SetWindowsVersionArchitecture(windowsVersion string, windowsArchitecture string)
SetWindowsVersionArchitecture is a helper function for setting the specific Windows version and architecture.
type WimInfo ¶
func (WimInfo) Architecture ¶
func (WimInfo) ImageCount ¶
func (WimInfo) MajorVersion ¶
Click to show internal directories.
Click to hide internal directories.