servers

package
v0.0.0-...-8fe0c81 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2022 License: GPL-3.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(manager manager.Manager, kubeClient client.Client, providerChain providers.ProviderChain)

func LogHttp

func LogHttp(h http.Handler) http.Handler

func NewTokenBasket

func NewTokenBasket(kubeClient client.Client) token.TokenBasket

Types

type Server

type Server struct {

	// To build certmanager logger
	Name string

	Logger logr.Logger

	// Host is the address that the server will listen on.
	// Defaults to "" - all addresses.
	Host string

	// Port is the port number that the server will serve.
	// It will be defaulted to 443 if unspecified.
	Port int

	// CertDir is the directory that contains the server key and certificate. The
	// server key and certificate.
	CertDir string

	// CertName is the server certificate name. Defaults to tls.crt.
	CertName string

	// CertName is the server key name. Defaults to tls.key.
	KeyName string

	// Configure the server in plain text (http://). UNSAFE: Use with care, avoid in production`
	NoSsl bool

	// WebhookMux is the multiplexer that handles different handlerByPath.
	//Mux *http.ServeMux
	Router *mux.Router

	Manager ctrlrt.Manager
	// contains filtered or unexported fields
}

func (*Server) NeedLeaderElection

func (*Server) NeedLeaderElection() bool

func (*Server) Start

func (this *Server) Start(ctx context.Context) error

Directories

Path Synopsis
v1

Jump to

Keyboard shortcuts

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