Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GrpcAdapter ¶
type GrpcAdapter struct {
// contains filtered or unexported fields
}
GrpcAdapter supports authorization template.
func (*GrpcAdapter) Addr ¶
func (s *GrpcAdapter) Addr() string
Addr returns the listening address of the server
func (*GrpcAdapter) Close ¶
func (s *GrpcAdapter) Close() error
Close gracefully shuts down the server; used for testing
func (*GrpcAdapter) HandleAuthorization ¶
func (s *GrpcAdapter) HandleAuthorization(ctx context.Context, r *authorization.HandleAuthorizationRequest) (*v1beta1.CheckResult, error)
HandleAuthorization request
type Server ¶
Server is basic server interface
func NewGrpcAdapter ¶
NewGrpcAdapter creates a new IBP adapter that listens at provided port.
type Stat ¶
type Stat struct {
// The time the data point was received by autoscaler.
Time *time.Time
// The unique identity of this pod. Used to count how many pods
// are contributing to the metrics.
PodName string
// Average number of requests currently being handled by this pod.
AverageConcurrentRequests float64
// Part of AverageConcurrentRequests, for requests going through a proxy.
AverageProxiedConcurrentRequests float64
// Number of requests received since last Stat (approximately QPS).
RequestCount float64
// Part of RequestCount, for requests going through a proxy.
ProxiedRequestCount float64
}
Stat defines a single measurement at a point in time
type StatMessage ¶
type StatMessage struct {
Key types.NamespacedName
Stat Stat
}
StatMessage wraps a Stat with identifying information so it can be routed to the correct receiver.
Click to show internal directories.
Click to hide internal directories.