server

package
v0.31.3 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 26 Imported by: 26

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommandStartWardleServer

func NewCommandStartWardleServer(ctx context.Context, defaults *WardleServerOptions) *cobra.Command

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

func WardleVersionToKubeVersion added in v0.31.0

func WardleVersionToKubeVersion(ver *version.Version) *version.Version

Types

type WardleServerOptions

type WardleServerOptions struct {
	RecommendedOptions *genericoptions.RecommendedOptions

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

	AlternateDNS []string
}

WardleServerOptions contains state for master/api server

func NewWardleServerOptions

func NewWardleServerOptions(out, errOut io.Writer) *WardleServerOptions

NewWardleServerOptions returns a new WardleServerOptions

func (*WardleServerOptions) Complete

func (o *WardleServerOptions) Complete() error

Complete fills in fields required to have valid data

func (*WardleServerOptions) Config

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

Config returns config for the api server given WardleServerOptions

func (WardleServerOptions) RunWardleServer

func (o WardleServerOptions) RunWardleServer(ctx context.Context) error

RunWardleServer starts a new WardleServer given WardleServerOptions

func (WardleServerOptions) Validate

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

Validate validates WardleServerOptions

Jump to

Keyboard shortcuts

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