server

package
v0.0.0-...-494cf1a Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2024 License: AGPL-3.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HykubeVersionToKubeVersion

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

func NewCommandStartHykubeServer

func NewCommandStartHykubeServer(ctx context.Context, defaults *HykubeServerOptions) *cobra.Command

NewCommandStartHykubeServer provides a CLI handler for 'start master' command with a default HykubeServerOptions.

Types

type HykubeServerOptions

type HykubeServerOptions struct {
	RecommendedOptions *genericoptions.RecommendedOptions

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

	AlternateDNS []string
}

HykubeServerOptions contains state for master/api server

func NewHykubeServerOptions

func NewHykubeServerOptions(out, errOut io.Writer) *HykubeServerOptions

NewHykubeServerOptions returns a new HykubeServerOptions

func (*HykubeServerOptions) Complete

func (o *HykubeServerOptions) Complete() error

Complete fills in fields required to have valid data

func (*HykubeServerOptions) Config

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

Config returns config for the api server given HykubeServerOptions

func (*HykubeServerOptions) RunHykubeServer

func (o *HykubeServerOptions) RunHykubeServer(ctx context.Context) error

RunHykubeServer starts a new HykubeServer given HykubeServerOptions

func (*HykubeServerOptions) Validate

func (o *HykubeServerOptions) Validate(args []string) error

Validate validates HykubeServerOptions

Jump to

Keyboard shortcuts

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