Documentation ¶
Index ¶
Constants ¶
View Source
const UseConfiguredCacheSize = -1
UseConfiguredCacheSize indicates that the configured cache size should be used
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Getter ¶
type Getter interface {
GetRESTOptions(resource schema.GroupResource) (generic.RESTOptions, error)
}
func NewConfigGetter ¶
func NewConfigGetter(masterOptions configapi.MasterConfig, defaultResourceConfig *serverstorage.ResourceConfig, resourcePrefixOverrides map[schema.GroupResource]string, enforcedStorageVersions []schema.GroupVersionResource, quorumResources map[schema.GroupResource]struct{}) (Getter, error)
NewConfigGetter returns a restoptions.Getter implemented using information from the provided master config. By default, the etcd watch cache is enabled with a size of 1000 per resource type. TODO: this class should either not need to know about configapi.MasterConfig, or not be in pkg/util
func NewSimpleGetter ¶
func NewSimpleGetter(storage *storagebackend.Config) Getter
Click to show internal directories.
Click to hide internal directories.