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
Click to show internal directories.
Click to hide internal directories.