apiserver

package
v1.0.0-main Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2025 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HealthzHandler added in v0.10.0

func HealthzHandler() http.Handler

HealthzHandler returns a simple HTTP handler that always returns OK. This is for liveness probes that just need to know if the process is running. The response body is empty.

func ReadyzHandler added in v0.10.0

func ReadyzHandler(timeout time.Duration, checks ...HealthChecker) http.Handler

ReadyzHandler returns a simple HTTP handler that runs health checks. It iterates through provided checks and returns 503 on any failure. The response body is empty.

Types

type HealthChecker added in v0.10.0

type HealthChecker interface {
	CheckHealth(ctx context.Context) error
}

HealthChecker is a minimal contract for readiness checks.

type Server

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

func New

func New(
	log logrus.FieldLogger,
	cfg *config.Config,
	st store.Store,
	ca *crypto.CAClient,
	listener net.Listener,
	queuesProvider queues.Provider,
	consoleEndpointReg console.InternalSessionRegistration,
	orgResolver resolvers.Resolver,
) *Server

New returns a new instance of a flightctl server.

func (*Server) Run

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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