Documentation ¶
Overview ¶
Package event provides Registry interface and it's REST implementation for storing Event api objects.
Index ¶
- func NewEtcdRegistry(s storage.Interface, ttl uint64) generic.Registry
- type REST
- func (rs *REST) Create(ctx api.Context, obj runtime.Object) (runtime.Object, error)
- func (rs *REST) Delete(ctx api.Context, name string) (runtime.Object, error)
- func (rs *REST) Get(ctx api.Context, name string) (runtime.Object, error)
- func (rs *REST) List(ctx api.Context, label labels.Selector, field fields.Selector) (runtime.Object, error)
- func (*REST) New() runtime.Object
- func (*REST) NewList() runtime.Object
- func (rs *REST) Update(ctx api.Context, obj runtime.Object) (runtime.Object, bool, error)
- func (rs *REST) Watch(ctx api.Context, label labels.Selector, field fields.Selector, ...) (watch.Interface, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type REST ¶
type REST struct {
// contains filtered or unexported fields
}
REST adapts an event registry into apiserver's RESTStorage model.
func NewStorage ¶
NewStorage returns a new REST. You must use a registry created by NewEtcdRegistry unless you're testing.
Click to show internal directories.
Click to hide internal directories.