server

package
v0.4.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildInsecureHandlerChain

func BuildInsecureHandlerChain(apiHandler http.Handler, c *server.Config) http.Handler

BuildInsecureHandlerChain sets up the server to listen to http. Should be removed.

func NewCommandStartResourceMetadataServer

func NewCommandStartResourceMetadataServer(defaults *ResourceMetadataServerOptions, stopCh <-chan struct{}) *cobra.Command

NewCommandStartResourceMetadataServer provides a CLI handler for 'start master' command with a default ResourceMetadataServerOptions.

func NewInsecureServingOptions

NewInsecureServingOptions gives default values for the kube-apiserver. TODO: switch insecure serving off by default

Types

type ResourceMetadataServerOptions

type ResourceMetadataServerOptions struct {
	GenericServerRunOptions *genericoptions.ServerRunOptions
	InsecureServing         *genericoptions.DeprecatedInsecureServingOptionsWithLoopback
	Audit                   *genericoptions.AuditOptions
	Features                *genericoptions.FeatureOptions
	ProcessInfo             *genericoptions.ProcessInfo
	Webhook                 *genericoptions.WebhookOptions

	StdOut io.Writer
	StdErr io.Writer
}

ResourceMetadataServerOptions contains state for master/api server

func NewResourceMetadataServerOptions

func NewResourceMetadataServerOptions(out, errOut io.Writer) *ResourceMetadataServerOptions

NewResourceMetadataServerOptions returns a new ResourceMetadataServerOptions

func (*ResourceMetadataServerOptions) Complete

func (o *ResourceMetadataServerOptions) Complete() error

Complete fills in fields required to have valid data

func (*ResourceMetadataServerOptions) Config

Config returns config for the api server given ResourceMetadataServerOptions

func (ResourceMetadataServerOptions) RunResourceMetadataServer

func (o ResourceMetadataServerOptions) RunResourceMetadataServer(stopCh <-chan struct{}) error

RunResourceMetadataServer starts a new ResourceMetadataServer given ResourceMetadataServerOptions

func (ResourceMetadataServerOptions) Validate

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

Validate validates ResourceMetadataServerOptions

Jump to

Keyboard shortcuts

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