webhook

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultConverter = newConverter()

Functions

This section is empty.

Types

type ConvertFunc

type ConvertFunc func(runtime.Object) (runtime.Object, error)

type Converter

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

func (*Converter) Register

func (c *Converter) Register(from *schema.GroupVersionKind, to *schema.GroupVersion, f ConvertFunc)

type Server

type Server struct {
	*http.Server
	// contains filtered or unexported fields
}

func NewServer

func NewServer(addr, cert, key string) *Server

func (*Server) Conversion

func (s *Server) Conversion(w http.ResponseWriter, req *http.Request)

func (*Server) Shutdown

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

func (*Server) Start

func (s *Server) Start() error

func (*Server) Validate

func (s *Server) Validate(w http.ResponseWriter, req *http.Request)

Jump to

Keyboard shortcuts

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