server

package
v0.0.51 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExtraOptions added in v0.0.2

type ExtraOptions struct {
	QPS   float64
	Burst int

	TelemetryHost string
	TelemetryPort int

	BaseURL string
	Token   string
	CAFile  string
}

func NewExtraOptions added in v0.0.2

func NewExtraOptions() *ExtraOptions

func (*ExtraOptions) AddFlags added in v0.0.2

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

func (*ExtraOptions) ApplyTo added in v0.0.2

func (s *ExtraOptions) ApplyTo(cfg *apiserver.ExtraConfig) error

type UIServerOptions

type UIServerOptions struct {
	RecommendedOptions *genericoptions.RecommendedOptions
	PrometheusOptions  *promclient.Config
	ExtraOptions       *ExtraOptions

	StdOut io.Writer
	StdErr io.Writer
}

UIServerOptions contains state for master/api server

func NewUIServerOptions

func NewUIServerOptions(out, errOut io.Writer) *UIServerOptions

NewUIServerOptions returns a new UIServerOptions

func (UIServerOptions) AddFlags added in v0.0.2

func (o UIServerOptions) AddFlags(fs *pflag.FlagSet)

func (*UIServerOptions) Complete

func (o *UIServerOptions) Complete() error

Complete fills in fields required to have valid data

func (*UIServerOptions) Config

func (o *UIServerOptions) Config() (*apiserver.Config, error)

Config returns config for the api server given UIServerOptions

func (UIServerOptions) RunUIServer

func (o UIServerOptions) RunUIServer(ctx context.Context) error

RunUIServer starts a new UIServer given UIServerOptions

func (UIServerOptions) Validate

func (o UIServerOptions) Validate(args []string) error

Validate validates UIServerOptions

Jump to

Keyboard shortcuts

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