server

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2019 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AggregatedAdmissionInitializerGetter func(config *rest.Config) (admission.PluginInitializer, genericapiserver.PostStartHookFunc)
	AggregatedAdmissionPlugins           = make(map[string]admission.Interface)
)
View Source
var GetOpenApiDefinition openapi.GetOpenAPIDefinitions

Functions

func StartApiServer

func StartApiServer(etcdPath string, apis []*builders.APIGroupBuilder, openapidefs openapi.GetOpenAPIDefinitions,
	title, version string, tweakConfigFuncs ...func(apiServer *apiserver.Config) error) error

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

func StartApiServerWithOptions added in v1.15.0

func StartApiServerWithOptions(opts *StartOptions) error

Types

type BufferedResponse

type BufferedResponse struct {
	bytes.Buffer
}

func (BufferedResponse) Header

func (BufferedResponse) Header() http.Header

func (BufferedResponse) WriteHeader

func (BufferedResponse) WriteHeader(int)

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
	PrintOpenapi     bool
	RunDelegatedAuth bool
	BearerToken      string
	PostStartHooks   []PostStartHook
}

func NewCommandStartServer

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

NewCommandStartMaster provides a CLI handler for 'start master' command

func NewServerOptions

func NewServerOptions(etcdPath, title, version string, b []*builders.APIGroupBuilder) *ServerOptions

func (*ServerOptions) Complete

func (o *ServerOptions) Complete() error

func (ServerOptions) Config

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

func (*ServerOptions) RunServer

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

func (ServerOptions) Validate

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

type StartOptions added in v1.15.0

type StartOptions struct {
	EtcdPath         string
	Apis             []*builders.APIGroupBuilder
	Openapidefs      openapi.GetOpenAPIDefinitions
	Title            string
	Version          string
	TweakConfigFuncs []func(apiServer *apiserver.Config) error

	//FlagConfigFunc handles user-defined flags
	FlagConfigFuncs []func(*cobra.Command) error
}

Jump to

Keyboard shortcuts

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