api

package
v1.13.11 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: Apache-2.0 Imports: 16 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGetHealthzHandler added in v1.10.0

func NewGetHealthzHandler(s *Server) operator.GetHealthzHandler

NewGetHealthzHandler handles health requests.

func NewGetMetricsHandler added in v1.10.0

func NewGetMetricsHandler(s *Server) metrics.GetMetricsHandler

NewGetMetricsHandler handles metrics requests.

Types

type Server

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

Server is the type corresponding to cilium-operator apiserver.

func NewServer added in v1.10.0

func NewServer(shutdownSignal <-chan struct{}, allSystemsGo <-chan struct{}, addrs ...string) (*Server, error)

NewServer creates a server to handle cilium-operator requests.

func (*Server) StartServer added in v1.10.0

func (s *Server) StartServer() error

StartServer starts the HTTP listeners for the apiserver.

func (*Server) WithStatusCheckFunc added in v1.10.0

func (s *Server) WithStatusCheckFunc(f func() error) *Server

WithStatusCheckFunc returns the server configuring the check status function to return the health of the operator.

Jump to

Keyboard shortcuts

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