api

package
v0.0.0-...-686bfca Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGetHealthzHandler

func NewGetHealthzHandler(s *Server) operator.GetHealthzHandler

NewGetHealthzHandler handles health requests.

func NewGetMetricsHandler

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 cce-operator apiserver.

func NewServer

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

NewServer creates a server to handle cce-operator requests.

func (*Server) StartServer

func (s *Server) StartServer() error

StartServer starts the HTTP listeners for the apiserver.

func (*Server) WithStatusCheckFunc

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