Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metrics ¶
type Metrics interface { // Validation provides the metering.Summary for validation web hooks Validation() metering.Summary // Mutation provides the metering.Summary for mutation web hooks Mutation() metering.Summary }
Metrics provided metrics about the webhooks
type MetricsRegistry ¶
type MetricsRegistry interface { httpext.MetricsRegistry WebHook() Metrics }
MetricsRegistry is an extension to httpext.MetricsRegistry
type Server ¶
type Server struct { *httpext.Server // Inherit from our extended httpext.Server // Metrics provides the MetricsRegistry to access metrics Metrics MetricsRegistry // contains filtered or unexported fields }
Server is the webhook server
func (*Server) AddMutator ¶
AddMutator adds a mutation.Mutator to the Server
func (*Server) AddValidator ¶
func (s *Server) AddValidator(validators ...validation.Validator) error
AddValidator adds a validation.Validator to the Server
func (*Server) HandleAdmissionReview ¶
func (s *Server) HandleAdmissionReview(path string, admRevHandler handler.AdmissionReview, summary metering.Summary)
HandleAdmissionReview adds a handler.AdmissionReview
Click to show internal directories.
Click to hide internal directories.