This release contains various fixes and additions to the go-winio package.
It adds:
go module
support.ListenHvsock
support for opening and managing Hyper-V Sockets from a Windows host.DialPipeContext
that allows the caller to pass in the appropriate cancellation logic via thectx
parameter.- The
pkg/etw
package that enables the use of go binaries write to Windowsetw
logging. For a sample see thepkg/etw/sample
package. - The
pkg/etwlogrus
package which defines alogrus
hook that can be used to exportlogrus
messages toetw
. - The
pkg/fs
package which unifies theGetFileSystemType
function acrossDocker
andcontainerd
to avoid duplication. - The
pkg/guid
package which add easy support for thegolang.org/x/sys/windows.GUID
to makeNewV4
andNewV5
variantGUID
structures that supportTextMarshaler
for easy encoding and decoding fromJSON
. - The
pkg/security
package that enables support forGrantVmGroupAccess
on a file or directorypath
. This grants the appropriateVM Group SID
for thepath
or all files in thedirectory path
so that these files may be used at container activation or modification. - The
OpenVirtualDisk
function which enables go binaries to get asyscall.Handle
to avhd
that can be used for other variousvhd
operations. - The
Fd()
function on the named pipe that returns the raw handle to be used with other Windows syscalls.
It fixes:
- An a race condition where
ListenPipe
can fail due to concurrentDialPipe
calls.
A big Thanks!
(alphabetical)
@azdagron
@CodeLingoBot
@kevpar
@jhowardmsft
@jstarks
@jterry75
@sime1
@ehotinger