Versions in this module Expand all Collapse all v1 v1.11.13-rc.2 Dec 4, 2024 v1.0.0 Dec 4, 2024 Changes in this version + type CPUUser interface + CPUUsage func() float64 + type DiskUser interface + AvailableDiskBytes func() uint64 + DiskUsage func() (read float64, write float64) + type Manager interface + Shutdown func() + func NewManager(log logging.Logger, diskPath string, ...) (Manager, error) + type MockUser struct + func NewMockUser(ctrl *gomock.Controller) *MockUser + func (m *MockUser) AvailableDiskBytes() uint64 + func (m *MockUser) CPUUsage() float64 + func (m *MockUser) DiskUsage() (float64, float64) + func (m *MockUser) EXPECT() *MockUserMockRecorder + type MockUserMockRecorder struct + func (mr *MockUserMockRecorder) AvailableDiskBytes() *gomock.Call + func (mr *MockUserMockRecorder) CPUUsage() *gomock.Call + func (mr *MockUserMockRecorder) DiskUsage() *gomock.Call + type ProcessTracker interface + TrackProcess func(pid int) + UntrackProcess func(pid int) + type User interface + var NoUsage User = noUsage{}