cmd

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2022 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const SecurePortDefault = 6444

Variables

This section is empty.

Functions

func APIServerCommand

func APIServerCommand(out, errout io.Writer, stopCh <-chan struct{}, subCommandOptions SubCommandOptions) *cobra.Command

func ReadKubeConfig

func ReadKubeConfig(kubeConfigFile string) (clientcmd.ClientConfig, error)

Types

type APIServerOptions

type APIServerOptions struct {
	Output io.Writer

	SecureServing     *genericapiserveroptions.SecureServingOptionsWithLoopback
	Authentication    *genericapiserveroptions.DelegatingAuthenticationOptions
	SubCommandOptions SubCommandOptions
}

func (*APIServerOptions) AddFlags

func (o *APIServerOptions) AddFlags(flags *pflag.FlagSet)

func (*APIServerOptions) RunAPIServer

func (o *APIServerOptions) RunAPIServer(stopCh <-chan struct{}) error

RunAPIServer takes the options, starts the API server and waits until stopCh is closed or initial listening fails.

func (*APIServerOptions) Validate

func (o *APIServerOptions) Validate() error

type SubCommandDescription

type SubCommandDescription struct {
	Name  string
	Use   string
	Short string
	Long  string
}

type SubCommandOptions

type SubCommandOptions interface {
	Description() SubCommandDescription
	AddFlags(flags *pflag.FlagSet)
	Validate() []error
	PrepareVirtualWorkspaces() ([]virtualrootapiserver.InformerStart, []framework.VirtualWorkspace, error)
}

Jump to

Keyboard shortcuts

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