server

package
v2.0.0-...-6831f71 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 40 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func NewTicker

func NewTicker() *finalizer

func ProvideNamespaces

func ProvideNamespaces(opts *Options) types.Namespaces

Types

type Options

type Options struct {
	Apiserver     string
	Kubeconfig    string
	Help          bool
	Port          int
	Host          string
	TelemetryPort int
	TelemetryHost string
	Namespaces    options.NamespaceList
	Pod           string
	Namespace     string
	Version       bool

	EnableGZIPEncoding bool
	// contains filtered or unexported fields
}

Options are the configurable parameters

func NewOptions

func NewOptions() *Options

NewOptions returns a new instance of `Options`.

func (*Options) AddFlags

func (o *Options) AddFlags()

func (*Options) Mount

func (o *Options) Mount(addFlags func(newSet *pflag.FlagSet))

type Service

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

func NewServer

func NewServer(opts *Options) (*Service, error)

func (Service) IsReady

func (i Service) IsReady() bool

func (Service) MarkReady

func (i Service) MarkReady()

func (*Service) Serve

func (s *Service) Serve(done <-chan struct{}) error

Jump to

Keyboard shortcuts

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