luvrecon

package
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 23, 2022 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckRoot

func CheckRoot() bool

CheckRoot Checks if the current user is root

func GetDrives

func GetDrives() ([]string, error)

The GetDrives function returns a list of drives on the system.

func GetFileData

func GetFileData(file string) ([]byte, error)

GetFileData returns the data of a file as a byte slice

func GetFileSize

func GetFileSize(file string) (int64, error)

GetFileSize returns the size of a file in bytes

func GetUsers

func GetUsers() ([]string, error)

func GetWindowsVersion

func GetWindowsVersion() (int, error)

GetWindowsVersion returns the version of windows running on the host machine

func GpuName

func GpuName() ([]string, error)

GpuName returns the GPU info for the machine

func ListFiles

func ListFiles(dir string) ([]string, error)

ListFiles lists all files in a directory and returns them as a slice of strings

func MachineGuid

func MachineGuid() (string, error)

MachineGuid returns the machine guid

Types

type RegKeyData

type RegKeyData struct {
	Name string
	Data []string
}

RegKeyData is a struct for storing the data of a registry key

func GetRegKeyData

func GetRegKeyData(key string) RegKeyData

GetRegKeyData gets the data from a registry key and returns a RegKeyData struct

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL