processinfo

package
v0.30.3 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2026 License: AGPL-3.0 Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package processinfo exposes sampled process identity without lifecycle authority.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Process

type Process struct {
	Key               string                         `json:"key"`
	Role              string                         `json:"role"`
	PluginID          string                         `json:"pluginID"`
	Ownership         string                         `json:"ownership"`
	Identity          *devsession.ProcessObservation `json:"identity"`
	Windows           []Window                       `json:"windows"`
	WindowAssociation string                         `json:"windowAssociation"`
	Evidence          string                         `json:"evidence"`
	Error             string                         `json:"error"`
}

type Service

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

func New

func New(app *application.App, plugins interface {
	GetPluginProcesses() []plugin.PluginProcessInfo
}) *Service

New captures self identity once. Failure never adopts a later process lifetime.

func (*Service) GetSnapshot

func (s *Service) GetSnapshot() Snapshot

GetSnapshot returns observations, not a guarantee of continued process liveness.

type Snapshot

type Snapshot struct {
	ObservedAt time.Time `json:"observedAt"`
	Processes  []Process `json:"processes"`
}

type Window

type Window struct {
	Name      string `json:"name"`
	ID        uint   `json:"id"`
	NativeID  int64  `json:"nativeID"`
	Ownership string `json:"ownership"`
	Error     string `json:"error"`
}

Jump to

Keyboard shortcuts

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