kubernetes: github.com/erimatnor/kubernetes/pkg/registry/event Index | Files

package event

import "github.com/erimatnor/kubernetes/pkg/registry/event"

Package event provides Registry interface and it's REST implementation for storing Event api objects.


Package Files

doc.go registry.go rest.go

func NewEtcdRegistry Uses

func NewEtcdRegistry(h tools.EtcdHelper, ttl uint64) generic.Registry

NewEtcdRegistry returns a registry which will store Events in the given EtcdHelper. ttl is the time that Events will be retained by the system.

type REST Uses

type REST struct {
    // contains filtered or unexported fields

REST adapts an event registry into apiserver's RESTStorage model.

func NewStorage Uses

func NewStorage(registry generic.Registry) *REST

NewStorage returns a new REST. You must use a registry created by NewEtcdRegistry unless you're testing.

func (*REST) Create Uses

func (rs *REST) Create(ctx api.Context, obj runtime.Object) (runtime.Object, error)

func (*REST) Delete Uses

func (rs *REST) Delete(ctx api.Context, name string) (runtime.Object, error)

func (*REST) Get Uses

func (rs *REST) Get(ctx api.Context, id string) (runtime.Object, error)

func (*REST) List Uses

func (rs *REST) List(ctx api.Context, label labels.Selector, field fields.Selector) (runtime.Object, error)

func (*REST) New Uses

func (*REST) New() runtime.Object

New returns a new api.Event

func (*REST) NewList Uses

func (*REST) NewList() runtime.Object

func (*REST) Update Uses

func (rs *REST) Update(ctx api.Context, obj runtime.Object) (runtime.Object, bool, error)

Update replaces an existing Event instance in storage.registry, with the given instance.

func (*REST) Watch Uses

func (rs *REST) Watch(ctx api.Context, label labels.Selector, field fields.Selector, resourceVersion string) (watch.Interface, error)

Watch returns Events events via a watch.Interface. It implements rest.Watcher.

Package event imports 11 packages (graph). Updated 2017-05-11. Refresh now. Tools for package owners.