mcfp

package module
v0.0.0-...-c3b3626 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

README

mcfp

Machine's fingerprint

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCpuString

func GetCpuString() string

func GetFingerPrint

func GetFingerPrint(mch Machiner) string

func GetFsUUID

func GetFsUUID(rdev string) string

func GetNicString

func GetNicString() string

hw addr of eth0 or en0, if none, first nic

func GetRootDevPath

func GetRootDevPath() string

Types

type BASE

type BASE struct {
}

func (BASE) Arch

func (BASE) Arch() string

func (BASE) MAC

func (BASE) MAC() string

func (BASE) Model

func (BASE) Model() string

func (BASE) NCPU

func (BASE) NCPU() int

func (BASE) OS

func (BASE) OS() string

func (BASE) RootDevPath

func (BASE) RootDevPath() string

type Machiner

type Machiner interface {
	Model() string
	Arch() string
	OS() string
	NCPU() int
	MAC() string
	RootDevPath() string
}
var R4S Machiner = r4s{}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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