Documentation ¶
Index ¶
- func EncodeExtendedAttributes(eas []ExtendedAttribute) ([]byte, error)
- func EncodeReparsePoint(rp *ReparsePoint) []byte
- func VsockServiceID(port uint32) guid.GUID
- type ExtendedAttribute
- type HvsockAddr
- type HvsockConn
- func (conn *HvsockConn) Close() error
- func (conn *HvsockConn) CloseRead() error
- func (conn *HvsockConn) CloseWrite() error
- func (conn *HvsockConn) LocalAddr() net.Addr
- func (conn *HvsockConn) Read(b []byte) (int, error)
- func (conn *HvsockConn) RemoteAddr() net.Addr
- func (conn *HvsockConn) SetDeadline(t time.Time) error
- func (conn *HvsockConn) SetReadDeadline(t time.Time) error
- func (conn *HvsockConn) SetWriteDeadline(t time.Time) error
- func (conn *HvsockConn) Write(b []byte) (int, error)
- type HvsockListener
- type ReparsePoint
- type UnsupportedReparsePointError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncodeExtendedAttributes ¶ added in v0.4.5
func EncodeExtendedAttributes(eas []ExtendedAttribute) ([]byte, error)
EncodeExtendedAttributes encodes a list of EAs into a FILE_FULL_EA_INFORMATION buffer for use with BackupWrite, ZwSetEaFile, etc.
func EncodeReparsePoint ¶
func EncodeReparsePoint(rp *ReparsePoint) []byte
EncodeReparsePoint encodes a Win32 REPARSE_DATA_BUFFER structure describing a symlink or mount point.
func VsockServiceID ¶ added in v0.5.1
VsockServiceID returns an hvsock service ID corresponding to the specified AF_VSOCK port.
Types ¶
type ExtendedAttribute ¶ added in v0.4.5
ExtendedAttribute represents a single Windows EA.
func DecodeExtendedAttributes ¶ added in v0.4.5
func DecodeExtendedAttributes(b []byte) (eas []ExtendedAttribute, err error)
DecodeExtendedAttributes decodes a list of EAs from a FILE_FULL_EA_INFORMATION buffer retrieved from BackupRead, ZwQueryEaFile, etc.
type HvsockAddr ¶ added in v0.5.1
An HvsockAddr is an address for a AF_HYPERV socket.
func (*HvsockAddr) Network ¶ added in v0.5.1
func (addr *HvsockAddr) Network() string
Network returns the address's network name, "hvsock".
func (*HvsockAddr) String ¶ added in v0.5.1
func (addr *HvsockAddr) String() string
type HvsockConn ¶ added in v0.5.1
type HvsockConn struct {
// contains filtered or unexported fields
}
HvsockConn is a connected socket of the AF_HYPERV address family.
func (*HvsockConn) Close ¶ added in v0.5.1
func (conn *HvsockConn) Close() error
Close closes the socket connection, failing any pending read or write calls.
func (*HvsockConn) CloseRead ¶ added in v0.5.1
func (conn *HvsockConn) CloseRead() error
CloseRead shuts down the read end of the socket.
func (*HvsockConn) CloseWrite ¶ added in v0.5.1
func (conn *HvsockConn) CloseWrite() error
CloseWrite shuts down the write end of the socket, notifying the other endpoint that no more data will be written.
func (*HvsockConn) LocalAddr ¶ added in v0.5.1
func (conn *HvsockConn) LocalAddr() net.Addr
LocalAddr returns the local address of the connection.
func (*HvsockConn) RemoteAddr ¶ added in v0.5.1
func (conn *HvsockConn) RemoteAddr() net.Addr
RemoteAddr returns the remote address of the connection.
func (*HvsockConn) SetDeadline ¶ added in v0.5.1
func (conn *HvsockConn) SetDeadline(t time.Time) error
SetDeadline implements the net.Conn SetDeadline method.
func (*HvsockConn) SetReadDeadline ¶ added in v0.5.1
func (conn *HvsockConn) SetReadDeadline(t time.Time) error
SetReadDeadline implements the net.Conn SetReadDeadline method.
func (*HvsockConn) SetWriteDeadline ¶ added in v0.5.1
func (conn *HvsockConn) SetWriteDeadline(t time.Time) error
SetWriteDeadline implements the net.Conn SetWriteDeadline method.
type HvsockListener ¶ added in v0.5.1
type HvsockListener struct {
// contains filtered or unexported fields
}
HvsockListener is a socket listener for the AF_HYPERV address family.
func ListenHvsock ¶ added in v0.5.1
func ListenHvsock(addr *HvsockAddr) (_ *HvsockListener, err error)
ListenHvsock listens for connections on the specified hvsock address.
func (*HvsockListener) Accept ¶ added in v0.5.1
func (l *HvsockListener) Accept() (_ net.Conn, err error)
Accept waits for the next connection and returns it.
func (*HvsockListener) Addr ¶ added in v0.5.1
func (l *HvsockListener) Addr() net.Addr
Addr returns the listener's network address.
func (*HvsockListener) Close ¶ added in v0.5.1
func (l *HvsockListener) Close() error
Close closes the listener, causing any pending Accept calls to fail.
type ReparsePoint ¶
ReparsePoint describes a Win32 symlink or mount point.
func DecodeReparsePoint ¶
func DecodeReparsePoint(b []byte) (*ReparsePoint, error)
DecodeReparsePoint decodes a Win32 REPARSE_DATA_BUFFER structure containing either a symlink or a mount point.
func DecodeReparsePointData ¶ added in v0.3.0
func DecodeReparsePointData(tag uint32, b []byte) (*ReparsePoint, error)
type UnsupportedReparsePointError ¶
type UnsupportedReparsePointError struct {
Tag uint32
}
UnsupportedReparsePointError is returned when trying to decode a non-symlink or mount point reparse point.
func (*UnsupportedReparsePointError) Error ¶
func (e *UnsupportedReparsePointError) Error() string
Directories ¶
Path | Synopsis |
---|---|
archive
|
|
tar
Package tar implements access to tar archives.
|
Package tar implements access to tar archives. |
pkg
|
|
etw
Package etw provides support for TraceLogging-based ETW (Event Tracing for Windows).
|
Package etw provides support for TraceLogging-based ETW (Event Tracing for Windows). |
etw/sample
Shows a sample usage of the ETW logging package.
|
Shows a sample usage of the ETW logging package. |
guid
Package guid provides a GUID type.
|
Package guid provides a GUID type. |
tools
|
|
Package wim implements a WIM file parser.
|
Package wim implements a WIM file parser. |
lzx
Package lzx implements a decompressor for the the WIM variant of the LZX compression algorithm.
|
Package lzx implements a decompressor for the the WIM variant of the LZX compression algorithm. |