server

package
v0.0.0-...-d41802c Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2021 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommandStartWardleServer

func NewCommandStartWardleServer(defaults *CustomServerOptions, stopCh <-chan struct{}) *cobra.Command

NewCommandStartWardleServer provides a CLI handler for 'start master' command with a default CustomServerOptions.

Types

type CustomServerOptions

type CustomServerOptions struct {
	RecommendedOptions *genericoptions.RecommendedOptions

	SharedInformerFactory informers.SharedInformerFactory
	StdOut                io.Writer
	StdErr                io.Writer
}

CustomServerOptions contains state for master/api server

func NewCustomServerOptions

func NewCustomServerOptions(out, errOut io.Writer) *CustomServerOptions

NewCustomServerOptions returns a new CustomServerOptions

func (*CustomServerOptions) Complete

func (o *CustomServerOptions) Complete() error

Complete fills in fields required to have valid data

func (*CustomServerOptions) Config

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

Config returns config for the api server given CustomServerOptions

func (CustomServerOptions) RunWardleServer

func (o CustomServerOptions) RunWardleServer(stopCh <-chan struct{}) error

RunWardleServer starts a new WardleServer given CustomServerOptions

func (CustomServerOptions) Validate

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

Validate validates CustomServerOptions

Jump to

Keyboard shortcuts

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