generic

package
v0.0.0-...-b479636 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBackend

func NewBackend(config *backend.Config, transformer backend.BackendTransformer) backend.Interface

func UndecoratedBackend

func UndecoratedBackend(config *backend.Config, transformer backend.BackendTransformer) backend.Interface

Types

type BackendDecorator

type BackendDecorator func(config *backend.Config, transformer backend.BackendTransformer) backend.Interface

type RESTOptions

type RESTOptions struct {
	BackendConfig  *backend.Config
	Decorator      BackendDecorator
	ResourcePrefix string
}

RESTOptions is set of configuration options to generic registries.

func (RESTOptions) GetRESTOptions

func (opts RESTOptions) GetRESTOptions(schema.GroupResource) (RESTOptions, error)

Implement RESTOptionsGetter so that RESTOptions can directly be used when available (i.e. tests)

type RESTOptionsGetter

type RESTOptionsGetter interface {
	GetRESTOptions(resource schema.GroupResource) (RESTOptions, error)
}

type StoreOptions

type StoreOptions struct {
	RESTOptions RESTOptionsGetter
	Transformer backend.BackendTransformer
}

StoreOptions is set of configuration options used to complete generic registries.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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