cmd

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2020 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GetOpenApiDefinition openapi.GetOpenAPIDefinitions

Functions

func NewCommandStartServer

func NewCommandStartServer(builders []*builders.APIGroupBuilder, stopCh <-chan struct{}, title, version string) *cobra.Command

NewCommandStartServer create a cobra start server command

func StartApiServer

func StartApiServer(
	apis []*builders.APIGroupBuilder,
	openapidefs openapi.GetOpenAPIDefinitions,
	title,
	version string)

StartApiServer starts an apiserver.

Types

type PostStartHook

type PostStartHook struct {
	Fn   genericapiserver.PostStartHookFunc
	Name string
}

type ServerOptions

type ServerOptions struct {
	RecommendedOptions *genericoptions.RecommendedOptions
	APIBuilders        []*builders.APIGroupBuilder

	InsecureServingOptions *genericoptions.DeprecatedInsecureServingOptionsWithLoopback

	PrintBearerToken bool
	RunDelegatedAuth bool
	BearerToken      string
	PostStartHooks   []PostStartHook

	GetOpenApiDefinition openapi.GetOpenAPIDefinitions

	RestConfig        *rest.Config
	StorageNamespace  string
	StorageKubeConfig string
	Codec             runtime.Codec
}

func NewServerOptions

func NewServerOptions(b []*builders.APIGroupBuilder) *ServerOptions

NewServerOptions create a ServerOptions

func (*ServerOptions) Complete

func (o *ServerOptions) Complete() error

func (ServerOptions) Config

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

Config create an apiserver config

func (*ServerOptions) RunServer

func (o *ServerOptions) RunServer(stopCh <-chan struct{}, title, version string) error

func (*ServerOptions) Validate

func (o *ServerOptions) Validate() error

Jump to

Keyboard shortcuts

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