Help us shape the future of Go! Take the 2026 Go Developer Survey

procowner

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package procowner records which process instance created a durable artifact and reports whether that exact process is still running.

Index

Constants

View Source
const SchemaVersion = 1

Variables

This section is empty.

Functions

This section is empty.

Types

type Classification

type Classification string
const (
	Owned    Classification = "owned"
	Orphaned Classification = "orphaned"
)

func Classify

func Classify(rec Owner) Classification

Classify answers Orphaned only when the recorded process is affirmatively gone. Everything else — a reused PID whose start time differs, a denied or unreadable probe, a record this build cannot interpret — is Owned, so an artifact is retained rather than replayed against a live process.

type Owner

type Owner struct {
	SchemaVersion int    `json:"schema_version"`
	OS            string `json:"os"`
	PID           int    `json:"pid"`
	StartTime     string `json:"start_time"`
}

func Capture

func Capture() (Owner, error)

Jump to

Keyboard shortcuts

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