Documentation
¶
Index ¶
- type ProcessingStartTimes
- func (p *ProcessingStartTimes) DeleteAll(name string, namespace string)
- func (p *ProcessingStartTimes) DeleteRange(name string, namespace string, observedGeneration int64)
- func (p *ProcessingStartTimes) GetRange(name string, namespace string, observedGeneration int64, success bool) []time.Time
- func (p *ProcessingStartTimes) Set(name string, namespace string, observedGeneration int64, startTime time.Time)
- func (p *ProcessingStartTimes) SetRangeFailed(name string, namespace string, observedGeneration int64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProcessingStartTimes ¶
type ProcessingStartTimes struct {
// contains filtered or unexported fields
}
func NewProcessingStartTimes ¶
func NewProcessingStartTimes() *ProcessingStartTimes
func (*ProcessingStartTimes) DeleteAll ¶ added in v0.13.18
func (p *ProcessingStartTimes) DeleteAll(name string, namespace string)
DeleteAll deletes all processing start times for the given (name, namespace), regardless of generation.
func (*ProcessingStartTimes) DeleteRange ¶
func (p *ProcessingStartTimes) DeleteRange(name string, namespace string, observedGeneration int64)
DeleteRange deletes all processing start times for the given (name, namespace) where generation <= observedGeneration.
func (*ProcessingStartTimes) GetRange ¶
func (p *ProcessingStartTimes) GetRange(name string, namespace string, observedGeneration int64, success bool) []time.Time
GetRange returns the processing start times for all requests with name, namespace, and generation <= observedGeneration.
func (*ProcessingStartTimes) Set ¶
func (p *ProcessingStartTimes) Set(name string, namespace string, observedGeneration int64, startTime time.Time)
Set sets the processing start time for the given request if it is earlier than the current one. Items with the same key can be queued multiple times, but we care about the first time that a request was encountered.
func (*ProcessingStartTimes) SetRangeFailed ¶
func (p *ProcessingStartTimes) SetRangeFailed(name string, namespace string, observedGeneration int64)
SetRangeFailed sets Failed: true on all items matching (name, namespace) and generation <= observedGeneration. This is to avoid double counting the processing duration for failed requests.