rest

package
v1.31.4 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: Apache-2.0 Imports: 58 Imported by: 49

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New added in v1.28.0

func New(c Config) (*legacyProvider, error)

Types

type Config added in v1.28.0

type Config struct {
	GenericConfig

	Proxy    ProxyConfig
	Services ServicesConfig
}

Config provides information needed to build RESTStorage for core.

type GenericConfig added in v1.28.0

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 added in v1.28.0

func (c *GenericConfig) GroupName() string

func (*GenericConfig) NewRESTStorage added in v1.28.0

func (c *GenericConfig) NewRESTStorage(apiResourceConfigSource serverstorage.APIResourceConfigSource, restOptionsGetter generic.RESTOptionsGetter) (genericapiserver.APIGroupInfo, error)

type ProxyConfig added in v1.28.0

type ProxyConfig struct {
	Transport           http.RoundTripper
	KubeletClientConfig kubeletclient.KubeletClientConfig
}

type ServicesConfig added in v1.28.0

type ServicesConfig struct {
	// Service IP ranges
	ClusterIPRange          net.IPNet
	SecondaryClusterIPRange net.IPNet
	NodePortRange           utilnet.PortRange

	IPRepairInterval time.Duration
}

Jump to

Keyboard shortcuts

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