event

package
v0.14.2 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2015 License: Apache-2.0 Imports: 11 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEtcdRegistry

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.

Types

type REST

type REST struct {
	// contains filtered or unexported fields
}

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

func NewStorage added in v0.14.0

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

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

func (*REST) Delete

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

func (*REST) Get

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

func (*REST) List

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

func (*REST) New

func (*REST) New() runtime.Object

New returns a new api.Event

func (*REST) NewList added in v0.9.0

func (*REST) NewList() runtime.Object

func (*REST) Update

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

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.

Jump to

Keyboard shortcuts

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