kubernetes/staging/src/k8s.io/pod-security-admission/cmd/webhook/server/server.go

const maxRequestSize

// NewSchedulerCommand creates a *cobra.Command object with default parameters and registryOptions
func NewServerCommand() *cobra.Command {}

func runServer(ctx context.Context, opts *options.Options) error {}

type Server

func (s *Server) Start(ctx context.Context) error {}

func (s *Server) HandleValidate(w http.ResponseWriter, r *http.Request) {}

type Config

// LoadConfig loads the Config from the Options.
func LoadConfig(opts *options.Options) (*Config, error) {}

// Setup creates an Admission object to handle the admission logic.
func Setup(c *Config) (*Server, error) {}

func writeResponse(w http.ResponseWriter, review *admissionv1.AdmissionReview) {}

// parseTimeout parses the given HTTP request URL and extracts the timeout query parameter
// value if specified by the user.
// If a timeout is not specified the function returns false and err is set to nil
// If the value specified is malformed then the function returns false and err is set
func parseTimeout(req *http.Request) (time.Duration, bool, error) {}