registry

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2017 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Strategy = templateStrategy{kapi.Scheme, kapi.SimpleNameGenerator}

Strategy is the default logic that applies when creating and updating Template objects via the REST API.

Functions

func Matcher added in v1.0.8

Matcher returns a generic matcher for a given label and field selector.

func SelectableFields added in v1.4.0

func SelectableFields(obj *api.Template) fields.Set

SelectableFields returns a field set that can be used for filter selection

Types

type REST

type REST struct {
}

REST implements RESTStorage interface for processing Template objects.

func NewREST

func NewREST() *REST

NewREST creates new RESTStorage interface for processing Template objects. If legacyReturn is used, a Config object is returned. Otherwise, a List is returned

func (*REST) Create

func (s *REST) Create(ctx kapi.Context, obj runtime.Object) (runtime.Object, error)

Create processes a Template and creates a new list of objects

func (*REST) New

func (s *REST) New() runtime.Object

New returns a new Template TODO: this is the input, but not the output. pkg/api/rest should probably allow a rest.Storage object to vary its output or input types (not sure whether New() should be input or output... probably input).

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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