webhook

package
v0.15.0-rc.5 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2023 License: MPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HubSignatureSHA256Header = "X-Hub-Signature-256"
	HubSignatureSHA1Header   = "X-Hub-Signature"
)
View Source
const (
	DefaultListenAddress = ":8080"
)

Variables

This section is empty.

Functions

func NewCallbackHandler

func NewCallbackHandler(log logr.Logger) *callbackHandler

Types

type Option

type Option func(s *Server) error

func WithClusterClient

func WithClusterClient(clusterClient client.Client) Option

func WithListenAddress

func WithListenAddress(addr string) Option

func WithListener

func WithListener(listener net.Listener) Option

func WithLogger

func WithLogger(log logr.Logger) Option

type Server

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

func New

func New(options ...Option) (*Server, error)

func (*Server) Start

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

Jump to

Keyboard shortcuts

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