ratelimiter

package
v0.0.0-...-a6c227c Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PreparedServer

type PreparedServer interface {
	Run(stopCh <-chan struct{}) error
}

type Server

type Server struct {
	Name string

	SecureServing   *apiserver.SecureServingInfo
	InsecureServing *apiserver.DeprecatedInsecureServingInfo
	Client          clientset.Interface
	InformerFactory informers.SharedInformerFactory
	RateLimiter     limiter.RateLimiter

	SecureHandler   http.Handler
	InsecureHandler http.Handler

	ServerStarted chan struct{}
}

func (*Server) PrepareRun

func (s *Server) PrepareRun() PreparedServer

func (*Server) Run

func (s *Server) Run(stopCh <-chan struct{}) (err error)

Run spawns the secure http server. It only returns if stopCh is closed or the secure port cannot be listened on initially.

Jump to

Keyboard shortcuts

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