introspection

package
v4.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package introspection holds the implementation details for the "introspection" HTTP server that Clair hosts.

Index

Constants

View Source
const (
	DefaultPromEndpoint = "/metrics"
	HealthEndpoint      = "/healthz"
	ReadyEndpoint       = "/readyz"
)

Endpoints on the introspection HTTP server.

View Source
const DefaultIntrospectionAddr = ":8089"

DefaultIntrospectionAddr is the default address if not provided in the configuration.

View Source
const (
	Jaeger = "jaeger"
)

Valid backends for traces.

View Source
const (
	Prom = "prometheus"
)

Valid backends for metrics.

View Source
const (
	Stdout = "stdout"
)

Valid backends for both metrics and traces.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {

	// Server embeds a http.Server and http.ServeMux.
	// The http.Server will be configured with the ServeMux on successful
	// initialization.
	*http.Server
	*http.ServeMux
	// contains filtered or unexported fields
}

Server provides an HTTP server exposing Clair metrics and debugging information.

func New

func New(ctx context.Context, conf *config.Config, health func() bool) (*Server, error)

New constructs a *Server, which has an embedded *http.Server.

Jump to

Keyboard shortcuts

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