hook

package
v0.0.0-...-e493922 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Payload

type Payload struct {
	Ref string `json:"ref"`
}

Payload is used to parse the ref out of the payload.

type Server

type Server struct {
	Address           string
	PlatformProviders map[string]providers.Platform
	Client            client.Client
	Logger            logr.Logger
	Namespace         string
	Clock             providers.Clock
}

func NewServer

func NewServer(addr string, platformProviders map[string]providers.Platform, client client.Client, log logr.Logger, namespace string, clock providers.Clock) *Server

func (*Server) Handler

func (s *Server) Handler(w http.ResponseWriter, request *http.Request)

Handler handles hook requests made to this operator.

func (*Server) ListenAndServe

func (s *Server) ListenAndServe() error

Jump to

Keyboard shortcuts

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