hiveapiserver

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2020 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HiveHandlerChain

func HiveHandlerChain(apiHandler http.Handler, genericConfig *genericapiserver.Config) http.Handler

HiveHandlerChain is the chain of http handlers for the Hive aggregated API server.

func NewRESTOptionsGetter

func NewRESTOptionsGetter(etcdOptions *options.EtcdOptions) (genericregistry.RESTOptionsGetter, error)

NewRESTOptionsGetter returns a restoptions.Getter implemented using information from the provided master config.

Types

type CompletedConfig

type CompletedConfig struct {
	GenericConfig genericapiserver.CompletedConfig
	ExtraConfig   *HiveAPIExtraConfig
}

CompletedConfig if the result of completing the HiveAPIConfig

func (CompletedConfig) New

New creates a new Hive aggregated API server.

type HiveAPIConfig

type HiveAPIConfig struct {
	GenericConfig *genericapiserver.RecommendedConfig
	ExtraConfig   HiveAPIExtraConfig
}

HiveAPIConfig is the config for the Hive aggregated API server

func NewHiveAPIConfig

func NewHiveAPIConfig(options *genericapiserveroptions.RecommendedOptions) (*HiveAPIConfig, error)

NewHiveAPIConfig creates new config for the Hive aggregated API server.

func (*HiveAPIConfig) Complete

func (c *HiveAPIConfig) Complete() CompletedConfig

Complete fills in any fields not set that are required to have valid data. It's mutating the receiver.

type HiveAPIExtraConfig

type HiveAPIExtraConfig struct {
	// we phrase it like this so we can build the post-start-hook, but no one can take more indirect dependencies on informers
	InformerStart func(stopCh <-chan struct{})

	KubeAPIServerClientConfig *rest.Config
	KubeInformers             kubeinformers.SharedInformerFactory
}

HiveAPIExtraConfig is extra config for the Hive aggregated API server

func (*HiveAPIExtraConfig) Validate

func (c *HiveAPIExtraConfig) Validate() error

Validate helps ensure that we build this config correctly, because there are lots of bits to remember for now

type HiveAPIServer

type HiveAPIServer struct {
	GenericAPIServer *genericapiserver.GenericAPIServer
}

HiveAPIServer is only responsible for serving the Hive v1alpha1 API

Jump to

Keyboard shortcuts

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