system

package
v0.0.0-...-53c5c15 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ExtractorName        = "system"
	ExtractorDescription = "generic system extractor"

	// Just cores, etc.
	CPUSection       = "cpu"
	ProcessorSection = "processor"
	ArchSection      = "arch"
	OsSection        = "os"
	MemorySection    = "memory"
)
View Source
const (
	CpuInfoFile = "/proc/cpuinfo"
)

Variables

This section is empty.

Functions

func NewPlugin

func NewPlugin(sections []string) (plugin.PluginInterface, error)

NewPlugin validates and returns a new kernel plugin

Types

type SystemExtractor

type SystemExtractor struct {
	// contains filtered or unexported fields
}

func (SystemExtractor) Create

func (SystemExtractor) Description

func (e SystemExtractor) Description() string

func (SystemExtractor) Extract

func (e SystemExtractor) Extract(allowFail bool) (plugin.PluginData, error)

Extract returns system metadata, for a set of named sections

func (SystemExtractor) IsCreator

func (e SystemExtractor) IsCreator() bool

func (SystemExtractor) IsExtractor

func (e SystemExtractor) IsExtractor() bool

func (SystemExtractor) Name

func (e SystemExtractor) Name() string

func (SystemExtractor) Sections

func (e SystemExtractor) Sections() []string

func (SystemExtractor) Validate

func (e SystemExtractor) Validate() bool

Validate ensures that the sections provided are in the list we know

Jump to

Keyboard shortcuts

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