server

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: Apache-2.0 Imports: 10 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
}

func NewServer

func NewServer(opts *ServerOptions, hooks ...handlers.Named) *Server

func (*Server) NeedLeaderElection

func (*Server) NeedLeaderElection() bool

NeedLeaderElection implements the LeaderElectionRunnable interface, which indicates the webhook server doesn't need leader election.

func (*Server) Start

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

type ServerOptions

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

func NewServerOptions

func NewServerOptions() *ServerOptions

func (*ServerOptions) AddFlags

func (s *ServerOptions) AddFlags(fs *pflag.FlagSet)

Jump to

Keyboard shortcuts

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