server

package
v0.0.0-...-89943c5 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2019 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartApiServer

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

StartApiServer starts an apiserver hosting the provider apis and openapi definitions.

Types

type ServerOptions

type ServerOptions struct {
	super.ServerOptions

	Admission *genericoptions.AdmissionOptions
}

ServerOptions is apiserver-builder's ServerOptions, with support for admission controllers.

func NewCommandStartServer

func NewCommandStartServer(etcdPath string, out, errOut io.Writer, builders []*builders.APIGroupBuilder,
	stopCh <-chan struct{}, title, version string) (*cobra.Command, *ServerOptions)

NewCommandStartMaster provides a CLI handler for 'start master' command

func NewServerOptions

func NewServerOptions(etcdPath string, out, errOut io.Writer, b []*builders.APIGroupBuilder) *ServerOptions

func (ServerOptions) Config

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

func (*ServerOptions) RunServer

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

func (ServerOptions) Validate

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

Jump to

Keyboard shortcuts

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