kubernetesk8s.io/kubernetes/pkg/registry/core/rest Index | Files

package rest

import "k8s.io/kubernetes/pkg/registry/core/rest"

Index

Types

type ComponentStatusServerFunc

type ComponentStatusServerFunc func() map[string]apiserver.Server

type LegacyRESTStorage

type LegacyRESTStorage struct {
	NodeRegistry              node.Registry
	NamespaceRegistry         namespace.Registry
	ServiceRegistry           service.Registry
	EndpointRegistry          endpoint.Registry
	ServiceClusterIPAllocator rangeallocation.RangeRegistry
	ServiceNodePortAllocator  rangeallocation.RangeRegistry
}

LegacyRESTStorage returns stateful information about particular instances of REST storage to master.go for wiring controllers. TODO remove this by running the controller as a poststarthook

type LegacyRESTStorageProvider

type LegacyRESTStorageProvider struct {
	StorageFactory genericapiserver.StorageFactory
	// Used for custom proxy dialing, and proxy TLS options
	ProxyTransport      http.RoundTripper
	KubeletClientConfig kubeletclient.KubeletClientConfig
	EventTTL            time.Duration

	// ServiceClusterIPRange is used to build cluster IPs for discovery.
	ServiceClusterIPRange *net.IPNet
	ServiceNodePortRange  utilnet.PortRange

	// ComponentStatusServerFunc is a func used to locate servers to back component status
	ComponentStatusServerFunc ComponentStatusServerFunc

	LoopbackClientConfig *restclient.Config
}

LegacyRESTStorageProvider provides information needed to build RESTStorage for core, but does NOT implement the "normal" RESTStorageProvider (yet!)

func (LegacyRESTStorageProvider) NewLegacyRESTStorage

Source Files

storage_core.go

Version
v1.5.0-alpha.2
Published
Oct 27, 2016
Platform
js/wasm
Imports
39 packages
Last checked
1 minute ago

Tools for package owners.