osdetect

package
v0.0.0-...-d707f67 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2025 License: Apache-2.0 Imports: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetectInitSystem

func DetectInitSystem() (string, error)

func DetectPkgManager

func DetectPkgManager(platform string, version string, family string) (string, error)

func DetectPlatform

func DetectPlatform(_ log.T) (string, string, string, error)

Types

type OperatingSystem

type OperatingSystem struct {
	Platform        string
	PlatformVersion string
	PlatformFamily  string
	Architecture    string
	InitSystem      string
	PackageManager  string
}

OperatingSystem contains operating system information and capabilities Identifies are aligned with Ohai data naming.

func CollectOSData

func CollectOSData(log log.T) (*OperatingSystem, error)

CollectOSData quires the operating system for type and capabilities

Jump to

Keyboard shortcuts

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