restoptions

package
v3.6.0-alpha.1+incompa... Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2017 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const UseConfiguredCacheSize = -1

UseConfiguredCacheSize indicates that the configured cache size should be used

Variables

This section is empty.

Functions

func ApplyOptions

func ApplyOptions(optsGetter Getter, store *registry.Store, triggerFn storage.TriggerPublisherFunc) error

ApplyOptions updates the given generic storage from the provided rest options

func DefaultKeyFunctions added in v1.4.0

func DefaultKeyFunctions(store *registry.Store, prefix string, isNamespaced bool)

DefaultKeyFunctions sets the default behavior for storage key generation onto a Store.

Types

type Getter

type Getter interface {
	GetRESTOptions(resource unversioned.GroupResource) (generic.RESTOptions, error)
}

func NewConfigGetter

func NewConfigGetter(masterOptions configapi.MasterConfig, defaultResourceConfig *genericapiserver.ResourceConfig, defaultResourcePrefixes map[unversioned.GroupResource]string, quorumResources map[unversioned.GroupResource]struct{}) Getter

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

Jump to

Keyboard shortcuts

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