http

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HandlerSet = wire.NewSet(
	wire.Struct(new(Handler), "*"),
)

HandlerSet provides a handler. nolint: gochecknoglobals

Functions

This section is empty.

Types

type Body

type Body struct {
	Namespace string     `json:"namespace"`
	Name      string     `json:"name"`
	Action    string     `json:"action"`
	Data      extv1.JSON `json:"data"`
}

type Handler

type Handler struct {
	Client         client.Client
	TriggerHandler hookutil.TriggerHandler
}

func NewHandler

func NewHandler(mgr manager.Manager) *Handler

func (*Handler) Handle

func (h *Handler) Handle(w http.ResponseWriter, r *http.Request) error

Jump to

Keyboard shortcuts

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