Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Strategy = templateStrategy{kapi.Scheme, names.SimpleNameGenerator}
Strategy is the default logic that applies when creating and updating Template objects via the REST API.
Functions ¶
func GetAttrs ¶
GetAttrs returns labels and fields of a given object for filtering purposes
func Matcher ¶
Matcher returns a generic matcher for a given label and field selector.
func SelectableFields ¶
func SelectableFields(obj *templateapi.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 ¶
Create processes a Template and creates a new list of objects
Source Files
¶
- rest.go
- strategy.go
Click to show internal directories.
Click to hide internal directories.