Documentation ¶
Index ¶
- Constants
- Variables
- func ProvideLogging() component.Declared[Observer]
- func ProvideMetrics() component.Declared[Observer]
- type BatchArg
- type EndExecuteRetryErr
- type EndExecuteRetryRetry
- type EndExecuteRetrySuccess
- type EndHandlePodInPpr
- type ExecuteRetryQuota
- type HttpError
- type Observer
- type Request
- type RequestComplete
- type RequestStatus
- type StartExecuteRetry
- type StartHandlePodInPpr
Constants ¶
View Source
const ( RequestStatusUnmatched = RequestStatus("Unmatched") RequestStatusNotRelevant = RequestStatus("NotRelevant") RequestStatusAlreadyTerminating = RequestStatus("AlreadyTerminating") RequestStatusAdmittedAll = RequestStatus("AdmittedAll") RequestStatusRetryAdvised = RequestStatus("RetryAdvised") RequestStatusRejected = RequestStatus("Rejected") RequestStatusError = RequestStatus("Error") )
Variables ¶
View Source
var Provide = component.RequireDeps( component.RequireDep(ProvideLogging()), component.RequireDep(ProvideMetrics()), )
Functions ¶
func ProvideLogging ¶
func ProvideMetrics ¶
Types ¶
type EndExecuteRetryErr ¶
type EndExecuteRetryErr struct {
Err error
}
type EndExecuteRetryRetry ¶
type EndExecuteRetrySuccess ¶
type EndExecuteRetrySuccess struct {
Results func(int) pprutil.DisruptionResult
}
type EndHandlePodInPpr ¶
type ExecuteRetryQuota ¶
type ExecuteRetryQuota struct { Before pprutil.DisruptionQuota After pprutil.DisruptionQuota }
type Observer ¶
type Observer struct { HttpRequest o11y.ObserveScopeFunc[Request] HttpRequestComplete o11y.ObserveFunc[RequestComplete] HttpError o11y.ObserveFunc[HttpError] StartHandlePodInPpr o11y.ObserveScopeFunc[StartHandlePodInPpr] EndHandlePodInPpr o11y.ObserveFunc[EndHandlePodInPpr] StartExecuteRetry o11y.ObserveScopeFunc[StartExecuteRetry] EndExecuteRetrySuccess o11y.ObserveFunc[EndExecuteRetrySuccess] EndExecuteRetryRetry o11y.ObserveFunc[EndExecuteRetryRetry] EndExecuteRetryErr o11y.ObserveFunc[EndExecuteRetryErr] ExecuteRetryQuota o11y.ObserveFunc[ExecuteRetryQuota] }
func (Observer) ComponentName ¶
type RequestComplete ¶
type RequestComplete struct { Request *admissionv1.AdmissionRequest Status RequestStatus }
type RequestStatus ¶
type RequestStatus string
type StartExecuteRetry ¶
type StartExecuteRetry struct { Key pprutil.PodProtectorKey Args []BatchArg }
Click to show internal directories.
Click to hide internal directories.