restoptions

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2016 License: Apache-2.0 Imports: 19 Imported by: ? modules, 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

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, etcdPrefix string) error

ApplyOptions updates the given generic storage from the provided rest options TODO: remove need for etcdPrefix once Decorator interface is refactored upstream

Types

type Getter

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

func NewConfigGetter

func NewConfigGetter(masterOptions configapi.MasterConfig) 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.

func NewSimpleGetter

func NewSimpleGetter(storage storage.Interface) Getter

Jump to

Keyboard shortcuts

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