v0.3.1 Latest Latest

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

Go to latest
Published: Feb 15, 2015 License: Apache-2.0 Imports: 13 Imported by: 0



Package resourcequota provides Registry interface and it's REST implementation for storing ResourceQuota api objects.



This section is empty.


This section is empty.


This section is empty.


type REST

type REST struct {
	// contains filtered or unexported fields

REST provides the RESTStorage access patterns to work with ResourceQuota objects.

func NewREST

func NewREST(registry generic.Registry) *REST

NewREST 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) (<-chan apiserver.RESTResult, error)

Create a ResourceQuota object

func (*REST) Delete

func (rs *REST) Delete(ctx api.Context, name string) (<-chan apiserver.RESTResult, error)

Delete deletes the ResourceQuota with the specified name

func (*REST) Get

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

Get gets a ResourceQuota with the specified name

func (*REST) List

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

func (*REST) New

func (*REST) New() runtime.Object

New returns a new api.ResourceQuota

func (*REST) NewList

func (*REST) NewList() runtime.Object

func (*REST) Update

func (rs *REST) Update(ctx api.Context, obj runtime.Object) (<-chan apiserver.RESTResult, error)

Update updates a ResourceQuota object.

func (*REST) Watch

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

type Registry

type Registry interface {

Registry implements operations to modify ResourceQuota objects

func NewEtcdRegistry

func NewEtcdRegistry(h tools.EtcdHelper) Registry

NewEtcdRegistry returns a registry which will store ResourceQuota in the given helper

Jump to

Keyboard shortcuts

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