server

package
v1.2.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 4, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdmitFunc

AdmitFunc is the function signature for handling admission requests. This is defined here to match the public API type signature.

type Config

type Config struct {
	Port        int
	HealthzPath string
	ReadyzPath  string
}

Config holds server configuration.

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server is the webhook HTTP server.

func New

func New(certProvider *certprovider.Provider, config Config) *Server

New creates a new webhook server.

func (*Server) RegisterHook

func (s *Server) RegisterHook(path string, hookType string, admit AdmitFunc)

RegisterHook registers a webhook handler at the given path.

func (*Server) Start

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

Start starts the HTTPS server.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL