package windows

import "github.com/elastic/go-sysinfo/providers/windows"

Package windows implements the HostProvider and ProcessProvider interfaces for providing information about Windows.

Index

Constants

const (
	// DeviceMup is the device used for unmounted network filesystems
	DeviceMup = "\\device\\mup"

	// LANManRedirector is an string that appears in mounted network filesystems
	LANManRedirector = "lanmanredirector"
)

Variables

var (
	// ErrNoDevice is the error returned by DevicePathToDrivePath when
	// an invalid device-path is supplied.
	ErrNoDevice = errors.New("not a device path")

	// ErrDeviceNotFound is the error returned by DevicePathToDrivePath when
	// a path pointing to an unmapped device is passed.
	ErrDeviceNotFound = errors.New("logical device not found")
)

Functions

func Architecture

func Architecture() (string, error)

func BootTime

func BootTime() (time.Time, error)

func KernelVersion

func KernelVersion() (string, error)

func MachineID

func MachineID() (string, error)

func NativeArchitecture

func NativeArchitecture() (string, error)

func OperatingSystem

func OperatingSystem() (*types.OSInfo, error)

Source Files

arch_windows.go boottime_windows.go device_windows.go doc.go helpers_windows.go host_windows.go kernel_windows.go machineid_windows.go os_windows.go process_windows.go

Version
v1.15.3 (latest)
Published
Mar 28, 2025
Platform
windows/amd64
Imports
16 packages
Last checked
4 hours ago

Tools for package owners.