server

package
v0.0.0-...-8323bfd Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2018 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExtraOptions

type ExtraOptions struct {
	EnableRBAC                  bool
	OperatorNamespace           string
	RestrictToOperatorNamespace bool
	GoverningService            string
	QPS                         float64
	Burst                       int
	ResyncPeriod                time.Duration
	MaxNumRequeues              int
	NumThreads                  int

	PrometheusCrdGroup string
	PrometheusCrdKinds prom.CrdKinds
}

func NewExtraOptions

func NewExtraOptions() *ExtraOptions

func (*ExtraOptions) AddFlags

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

func (*ExtraOptions) AddGoFlags

func (s *ExtraOptions) AddGoFlags(fs *flag.FlagSet)

func (*ExtraOptions) ApplyTo

func (s *ExtraOptions) ApplyTo(cfg *controller.OperatorConfig) error

func (ExtraOptions) WatchNamespace

func (s ExtraOptions) WatchNamespace() string

type RedisServerOptions

type RedisServerOptions struct {
	RecommendedOptions *genericoptions.RecommendedOptions
	ExtraOptions       *ExtraOptions

	StdOut io.Writer
	StdErr io.Writer
}

func NewRedisServerOptions

func NewRedisServerOptions(out, errOut io.Writer) *RedisServerOptions

func (RedisServerOptions) AddFlags

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

func (*RedisServerOptions) Complete

func (o *RedisServerOptions) Complete() error

func (RedisServerOptions) Config

func (RedisServerOptions) Run

func (o RedisServerOptions) Run(stopCh <-chan struct{}) error

func (RedisServerOptions) Validate

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

Jump to

Keyboard shortcuts

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