Documentation ¶
Index ¶
- type Options
- func (o Options) GetStorage(objectType runtime.Object, resourcePrefix string, ...) (storage.Interface, factory.DestroyFunc)
- func (o Options) KeyFunc(namespaced bool) func(context.Context, string) (string, error)
- func (o Options) KeyRootFunc() func(context.Context) string
- func (o Options) ResourcePrefix() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
Options is the extension of a generic.RESTOptions struct, complete with service-catalog specific things
func NewOptions ¶
NewOptions returns a new Options with the given parameters
func (Options) GetStorage ¶
func (o Options) GetStorage( objectType runtime.Object, resourcePrefix string, scopeStrategy rest.NamespaceScopedStrategy, newListFunc func() runtime.Object, getAttrsFunc storage.AttrFunc, trigger storage.TriggerPublisherFunc, ) (storage.Interface, factory.DestroyFunc)
GetStorage returns the storage from the given parameters
func (Options) KeyFunc ¶
KeyFunc returns the appropriate key function for the storage type in o. This function should produce a path that etcd or TPR storage understands, to the resource by combining the namespace in the context with the given prefix
func (Options) KeyRootFunc ¶
KeyRootFunc returns the appropriate key root function for the storage type in o. This function produces a path that etcd or TPR storage understands, to the root of the resource by combining the namespace in the context with the given prefix
func (Options) ResourcePrefix ¶
ResourcePrefix gets the resource prefix of all etcd keys