webhook

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2020 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 added in v0.11.0

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

type Converter added in v0.11.0

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

func (*Converter) Convert added in v0.11.0

func (*Converter) Register added in v0.11.0

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 added in v0.11.0

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 added in v0.11.0

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