server

package
v0.0.0-...-843aa42 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommandStartExampleServer

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

NewCommandStartExampleServer provides a CLI handler for 'start master' command with a default ExampleServerOptions.

Types

type ExampleServerOptions

type ExampleServerOptions struct {
	RecommendedOptions *genericoptions.RecommendedOptions

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

	AlternateDNS []string
}

ExampleServerOptions contains state for master/api server

func NewExampleServerOptions

func NewExampleServerOptions(out, errOut io.Writer) *ExampleServerOptions

NewExampleServerOptions returns a new ExampleServerOptions

func (*ExampleServerOptions) Complete

func (o *ExampleServerOptions) Complete() error

Complete fills in fields required to have valid data

func (*ExampleServerOptions) Config

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

Config returns config for the api server given ExampleServerOptions

func (ExampleServerOptions) RunExampleServer

func (o ExampleServerOptions) RunExampleServer(stopCh <-chan struct{}) error

RunExampleServer starts a new ExampleServer given ExampleServerOptions

func (ExampleServerOptions) Validate

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

Validate validates ExampleServerOptions

Jump to

Keyboard shortcuts

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