api

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: Apache-2.0 Imports: 18 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 {
	Address       string
	WaitTimeout   time.Duration
	Log           logr.Logger
	NodeInfoCache cache.NodeInfoCache
	StaticPath    string
	Namespace     string
	Elected       <-chan struct{}
	Client        client.Client
	// contains filtered or unexported fields
}

func (*Server) Done

func (s *Server) Done() chan struct{}

returns a channel that is closed, when the server properly terminates.

func (*Server) NeedLeaderElection

func (s *Server) NeedLeaderElection() bool

func (*Server) Start

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

Jump to

Keyboard shortcuts

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