api

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server is the health/status API server.

func NewServer

func NewServer(cfg *config.WebAPIConfig, appCfg *config.Config) *Server

NewServer creates a new API server.

func (*Server) SetStatusProvider

func (s *Server) SetStatusProvider(provider StatusProvider)

SetStatusProvider sets the status provider.

func (*Server) Start

func (s *Server) Start() error

Start starts the API server.

func (*Server) Stop

func (s *Server) Stop()

Stop stops the API server.

type StatusProvider

type StatusProvider interface {
	GetRegisteredJobCount() int
	GetLastReconcileTime() time.Time
	GetJobDetails() []scheduler.JobDetail
	GetSkippedAnnotations() []scanner.SkippedAnnotation
}

StatusProvider provides status information.

Jump to

Keyboard shortcuts

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