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
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.31.0-alpha.3
- Published
- Jul 2, 2024
- Platform
- windows/amd64
- Imports
- 58 packages
- Last checked
- 14 minutes ago –
Tools for package owners.