Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsJobRunActive ¶
IsJobRunActive returns a bool indicating if a job run is active (paused).
func NewRateLimitingReader ¶
NewRateLimitingReader returns a RateLimitingReader.
func ProcessJobRunBandwidths ¶
func ProcessJobRunBandwidths(jobBWs []*controlpb.JobRunBandwidth, st *stats.Tracker)
ProcessJobRunBandwidths updates the jobRunBW mapping and projectBWLimiter given the values in the control message.
Types ¶
type RateLimitingReader ¶
type RateLimitingReader struct {
// contains filtered or unexported fields
}
RateLimitingReader is an io.Reader that wraps another io.Reader and enforces rate limiting during the Read function.
Click to show internal directories.
Click to hide internal directories.