storage

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2025 License: MIT Imports: 10 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SpecialDefaultResourcePrefixes = map[schema.GroupResource]string{

	{Group: "", Resource: "endpoints"}: "services/endpoints",
	{Group: "", Resource: "services"}:  "services/specs",
}

SpecialDefaultResourcePrefixes are prefixes compiled into Kubernetes.

Functions

func DefaultWatchCacheSizes

func DefaultWatchCacheSizes() map[schema.GroupResource]int

DefaultWatchCacheSizes defines default resources for which watchcache should be disabled.

Types

type RESTStorageProvider

type RESTStorageProvider interface {
	GroupName() string
	NewRESTStorage(apiResourceConfigSource serverstorage.APIResourceConfigSource, restOptionsGetter generic.RESTOptionsGetter) (genericapiserver.APIGroupInfo, error)
}

RESTStorageProvider is a factory type for REST storage.

type StorageFactoryConfig

type StorageFactoryConfig struct {
	StorageConfig             storagebackend.Config
	APIResourceConfig         *serverstorage.ResourceConfig
	DefaultResourceEncoding   *serverstorage.DefaultResourceEncodingConfig
	DefaultStorageMediaType   string
	Serializer                runtime.StorageSerializer
	ResourceEncodingOverrides []schema.GroupVersionResource
	EtcdServersOverrides      []string
}

StorageFactoryConfig is a configuration for creating storage factory.

func NewStorageFactoryConfig

func NewStorageFactoryConfig() *StorageFactoryConfig

NewStorageFactoryConfig returns a new StorageFactoryConfig set up with necessary resource overrides.

func (*StorageFactoryConfig) Complete

func (c *StorageFactoryConfig) Complete(etcdOptions *serveroptions.EtcdOptions) *completedStorageFactoryConfig

Complete completes the StorageFactoryConfig with provided etcdOptions returning completedStorageFactoryConfig. This method mutates the receiver (StorageFactoryConfig). It must never mutate the inputs.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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