Versions in this module Expand all Collapse all v0 v0.1.1 Oct 16, 2026 v0.1.0 Oct 16, 2026 Changes in this version + const Namespace + func SafeOrigin(raw string) (scheme, host string, ok bool) + type AdapterObservation struct + BrowserShare []string + Capabilities []string + Contexts []ContextObservation + DiscoveryStatus string + ListSupported bool + Listed bool + Name string + ObserveSupported bool + Relations []RelationObservation + Resources []ResourceObservation + Runtime string + Selector string + Supports []string + Surfaces []string + Trusted bool + type AliasObservation struct + Adapter string + Metadata map[string]string + Name string + Selection string + Space string + type ApplicationInfo struct + Name string + Path string + type CollectionStatus struct + Detail string + ObservedAt *time.Time + State string + type ContextCandidate struct + Adapter string + BrowserShare map[string]string + Capabilities []string + ObservedAt time.Time + Runtime string + Selection string + SelectionDigest string + SelectionRedacted bool + Supports []string + type ContextObservation struct + Attributes map[string]any + BrowserShare map[string]string + Capabilities []string + Selection string + Supports []string + type FilesystemInfo struct + DetailError string + DriveKind string + Label string + MountPoint string + ReadOnly bool + Source string + Space *FilesystemSpace + Type string + func DiscoverFilesystems(ctx context.Context) ([]FilesystemInfo, error) + type FilesystemRequirement struct + MinimumAvailableBytes uint64 + Path string + Select string + Types []string + Writable bool + type FilesystemSpace struct + AvailableBytes uint64 + FreeBytes uint64 + TotalBytes uint64 + type Graph struct + Store graph.Store + func New(store graph.Store) (*Graph, error) + func Open(configHome string) (*Graph, error) + func (g *Graph) Close() error + func (g *Graph) ObserveHost(ctx context.Context, inventory HostInventory) error + func (g *Graph) ObserveInventory(ctx context.Context, adapters []AdapterObservation, aliases []AliasObservation) error + func (g *Graph) ObserveProcesses(ctx context.Context, observation ProcessSnapshot) error + func (g *Graph) ObserveShell(ctx context.Context, cwd, profile string, selections map[string]string) error + func (g *Graph) ObserveWeb(ctx context.Context, provider, profile, scheme, host string) error + func (g *Graph) PrepareHost(ctx context.Context, requirements OperationRequirements, ...) (PreparedHost, error) + func (g *Graph) ReadHost(ctx context.Context) (HostSnapshot, error) + func (g *Graph) ResolveHost(ctx context.Context, requirements OperationRequirements) (HostCandidates, error) + func (g *Graph) ResolveInventory(ctx context.Context, runtimeName string) (Inventory, error) + func (g *Graph) ScanHost(ctx context.Context) (HostInventory, error) + func (g *Graph) ScanProcesses(ctx context.Context, options ProcessOptions) (ProcessSnapshot, error) + type HostCandidates struct + Filesystems []FilesystemInfo + ObservedAt map[string]time.Time + Operation string + Shells []ShellInfo + Webviews []WebviewInfo + type HostInventory struct + Filesystems []FilesystemInfo + Shells []ShellInfo + Webviews []WebviewInfo + func DiscoverHost(ctx context.Context) (HostInventory, error) + type HostRequirementError struct + Cause error + Kind string + Operation string + Reason string + func (err *HostRequirementError) Error() string + func (err *HostRequirementError) Unwrap() error + type HostSnapshot struct + ObservedAt map[string]time.Time + type Inventory struct + Contexts []ContextCandidate + ObservedAt time.Time + func (inventory Inventory) Find(adapter, selection string, capabilities ...string) (ContextCandidate, error) + func (inventory Inventory) FreshWithin(maxAge time.Duration) bool + type OperationRequirements struct + Filesystem *FilesystemRequirement + MaxAge time.Duration + Operation string + Shell *ShellRequirement + Webview *WebviewRequirement + type PreparedHost struct + Filesystem *FilesystemInfo + Operation string + Shell *ShellInfo + ValidatedAt time.Time + Webview *WebviewInfo + type ProcessInfo struct + Application *ApplicationInfo + Coverage map[string]CollectionStatus + Executable string + Name string + Owner string + PID int + ParentPID int + Resources []ProcessResource + StartID string + Usage *ProcessUsage + type ProcessOptions struct + MaxProcesses int + MaxResources int + Timeout time.Duration + type ProcessResource struct + Descriptor string + Endpoint string + Kind string + LocalAddress string + Path string + Protocol string + RemoteAddress string + State string + type ProcessSnapshot struct + Enumeration CollectionStatus + HostID string + ObservedAt time.Time + Processes []ProcessInfo + Scope string + func DiscoverProcesses(ctx context.Context, options ProcessOptions) (ProcessSnapshot, error) + func InspectProcess(ctx context.Context, pid int, options ProcessOptions) (ProcessSnapshot, error) + type ProcessUsage struct + CPUSeconds *float64 + ResidentBytes *uint64 + Threads *uint32 + VirtualBytes *uint64 + type RelationObservation struct + From string + Kind string + To string + type ResourceObservation struct + Attributes map[string]any + Context string + ID string + Kind string + type ShellInfo struct + ConfiguredDefault bool + Name string + Path string + ResolvedPath string + Sources []string + func DiscoverShells(ctx context.Context) ([]ShellInfo, error) + type ShellRequirement struct + Name string + SearchPath *string + Select string + type WebviewInfo struct + ABIVersion string + API string + Architecture string + DetailError string + Engine string + Location string + Name string + ResolvedPath string + Scope string + Source string + Version string + func DiscoverWebviews(ctx context.Context) ([]WebviewInfo, error) + type WebviewRequirement struct + ABIVersion string + API string + Architecture string + Engine string + Select string + Version string + type WebviewValidator func(context.Context, WebviewInfo) error