api

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HealthzHandler

func HealthzHandler() http.HandlerFunc

HealthzHandler for the Halthz REST API

func ReadyHandler

func ReadyHandler() http.HandlerFunc

ReadyHandler for the Halthz REST API

func WebhookHandler

func WebhookHandler(polrClient *kubernetes.Client, filter *tracee.Filter) http.HandlerFunc

ReadyHandler for the Halthz REST API

Types

type Server

type Server interface {
	// Start the HTTP Server
	Start() error
	// Shutdown the HTTP Sever
	Shutdown(ctx context.Context) error
	// RegisterLifecycleHandler adds healthy and readiness APIs
	RegisterLifecycleHandler()
	// RegisterWebhookHandler adds webhook api for tracee events
	RegisterWebhookHandler()
	// RegisterProfilingHandler adds the optional pprof profiling APIs
	RegisterProfilingHandler()
}

Server for the Lifecycle and optional HTTP REST API

func NewServer

func NewServer(port int, client *kubernetes.Client, filter *tracee.Filter) Server

NewServer constructor for a new API Server

Jump to

Keyboard shortcuts

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