Versions in this module Expand all Collapse all v1 v1.1.1 Dec 18, 2024 Changes in this version + type DiskTracker interface + AvailableDiskBytes func() uint64 + type MockTargeter struct + func NewMockTargeter(ctrl *gomock.Controller) *MockTargeter + func (m *MockTargeter) EXPECT() *MockTargeterMockRecorder + func (m *MockTargeter) TargetUsage(arg0 ids.NodeID) float64 + type MockTargeterMockRecorder struct + func (mr *MockTargeterMockRecorder) TargetUsage(arg0 interface{}) *gomock.Call + type MockTracker struct + func NewMockTracker(ctrl *gomock.Controller) *MockTracker + func (m *MockTracker) EXPECT() *MockTrackerMockRecorder + func (m *MockTracker) TimeUntilUsage(arg0 ids.NodeID, arg1 time.Time, arg2 float64) time.Duration + func (m *MockTracker) TotalUsage() float64 + func (m *MockTracker) Usage(arg0 ids.NodeID, arg1 time.Time) float64 + type MockTrackerMockRecorder struct + func (mr *MockTrackerMockRecorder) TimeUntilUsage(arg0, arg1, arg2 interface{}) *gomock.Call + func (mr *MockTrackerMockRecorder) TotalUsage() *gomock.Call + func (mr *MockTrackerMockRecorder) Usage(arg0, arg1 interface{}) *gomock.Call + type ResourceTracker interface + CPUTracker func() Tracker + DiskTracker func() DiskTracker + StartProcessing func(ids.NodeID, time.Time) + StopProcessing func(ids.NodeID, time.Time) + func NewResourceTracker(reg prometheus.Registerer, resources resource.User, factory meter.Factory, ...) (ResourceTracker, error) + type Targeter interface + TargetUsage func(nodeID ids.NodeID) float64 + func NewTargeter(config *TargeterConfig, vdrs validators.Set, tracker Tracker) Targeter + type TargeterConfig struct + MaxNonVdrNodeUsage float64 + MaxNonVdrUsage float64 + VdrAlloc float64 + type Tracker interface + TimeUntilUsage func(nodeID ids.NodeID, now time.Time, value float64) time.Duration + TotalUsage func() float64 + Usage func(nodeID ids.NodeID, now time.Time) float64