apiserver

package
v0.0.0-...-c53da67 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CompletedConfig

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

CompletedConfig is the completed config for the Hive API server.

func (CompletedConfig) New

New returns a new instance of HiveAPIServer from the given config.

func (*CompletedConfig) V1Alpha1RESTStorage

func (c *CompletedConfig) V1Alpha1RESTStorage() (map[string]rest.Storage, error)

V1Alpha1RESTStorage creates the storage to use for each of the Hive v1alpha1 kinds.

type ExtraConfig

type ExtraConfig struct {
	KubeAPIServerClientConfig *restclient.Config
	KubeInformers             kubeinformers.SharedInformerFactory

	// TODO these should all become local eventually
	Scheme *runtime.Scheme
	Codecs serializer.CodecFactory
	// contains filtered or unexported fields
}

ExtraConfig is extra config for the Hive API server.

type HiveAPIServer

type HiveAPIServer struct {
	GenericAPIServer *genericapiserver.GenericAPIServer
}

HiveAPIServer is an aggregated API server serving v1alpha1 as a proxy to v1.

type HiveAPIServerConfig

type HiveAPIServerConfig struct {
	GenericConfig *genericapiserver.RecommendedConfig
	ExtraConfig   ExtraConfig
}

HiveAPIServerConfig is the config for the Hive API server.

func (*HiveAPIServerConfig) Complete

func (c *HiveAPIServerConfig) Complete() CompletedConfig

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

Jump to

Keyboard shortcuts

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