Versions in this module Expand all Collapse all v0 v0.0.24 Nov 25, 2023 v0.0.23 Nov 25, 2023 Changes in this version + type ProcessState int + const Dead + const Idle + const InterruptibleSleep + const NotFound + const Parked + const Running + const Stopped + const TracingStop + const UninterruptibleSleep + const Unknown + const Waking + const Zombie + func (ps ProcessState) String() string + type ServiceEvent struct + Event string + Unique string + type SingleTracker struct + Tracked Tracked + func (t *SingleTracker) Stop() + type Tracked interface + GetStatus func() (ProcessState, error) + GetUsage func() (*Usage, error) + Kill func() error + Name func() string + Unique func() string + func NewTracked(service *configurations.Service, tracker *runtimev1.Tracker) (Tracked, error) + type TrackedContainer struct + func (t TrackedContainer) GetStatus() (ProcessState, error) + func (t TrackedContainer) GetUsage() (*Usage, error) + func (t TrackedContainer) Kill() error + func (t TrackedContainer) Name() string + func (t TrackedContainer) Unique() string + type TrackedProcess struct + Killed bool + PID int + func (p *TrackedProcess) GetStatus() (ProcessState, error) + func (p *TrackedProcess) GetUsage() (*Usage, error) + func (p *TrackedProcess) Kill() error + func (p *TrackedProcess) Name() string + func (p *TrackedProcess) Proto() *runtimev1.Tracker + func (p *TrackedProcess) Unique() string + type Tracker interface + Start func(events chan<- ServiceEvent) error + Stop func() + type Usage struct + CPU float64 + Memory float64