package rest
import "k8s.io/kubernetes/pkg/registry/core/rest"
Index ¶
- func New(c Config) (*legacyProvider, error)
- type Config
- type GenericConfig
- func (c *GenericConfig) GroupName() string
- func (c *GenericConfig) NewRESTStorage(apiResourceConfigSource serverstorage.APIResourceConfigSource, restOptionsGetter generic.RESTOptionsGetter) (genericapiserver.APIGroupInfo, error)
- type ProxyConfig
- type ServicesConfig
Functions ¶
func New ¶
Types ¶
type Config ¶
type Config struct { GenericConfig Proxy ProxyConfig Services ServicesConfig }
Config provides information needed to build RESTStorage for core.
type GenericConfig ¶
type GenericConfig struct { StorageFactory serverstorage.StorageFactory EventTTL time.Duration ServiceAccountIssuer serviceaccount.TokenGenerator ServiceAccountMaxExpiration time.Duration ExtendExpiration bool MaxExtendedExpiration time.Duration APIAudiences authenticator.Audiences LoopbackClientConfig *restclient.Config Informers informers.SharedInformerFactory }
GenericConfig provides information needed to build RESTStorage for generic resources in core. It implements the "normal" RESTStorageProvider interface.
func (*GenericConfig) GroupName ¶
func (c *GenericConfig) GroupName() string
func (*GenericConfig) NewRESTStorage ¶
func (c *GenericConfig) NewRESTStorage(apiResourceConfigSource serverstorage.APIResourceConfigSource, restOptionsGetter generic.RESTOptionsGetter) (genericapiserver.APIGroupInfo, error)
type ProxyConfig ¶
type ProxyConfig struct { Transport http.RoundTripper KubeletClientConfig kubeletclient.KubeletClientConfig }
type ServicesConfig ¶
type ServicesConfig struct { // Service IP ranges ClusterIPRange net.IPNet SecondaryClusterIPRange net.IPNet NodePortRange utilnet.PortRange IPRepairInterval time.Duration }
Source Files ¶
storage_core.go storage_core_generic.go
- Version
- v1.33.0 (latest)
- Published
- Apr 23, 2025
- Platform
- linux/amd64
- Imports
- 61 packages
- Last checked
- 3 hours ago –
Tools for package owners.