limitrange

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: 12 Imported by: 0

Documentation

Overview

Package limitrange provides Registry interface and it's REST implementation for storing LimitRange api objects.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEtcdRegistry

func NewEtcdRegistry(h tools.EtcdHelper) generic.Registry

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

Types

type REST

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

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

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)

Create a LimitRange object

func (*REST) Delete

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

Delete deletes the LimitRange with the specified name

func (*REST) Get

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

Get gets a LimitRange with the specified name

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.LimitRange

func (*REST) NewList

func (*REST) NewList() runtime.Object

func (*REST) Update

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

Update updates a LimitRange object.

func (*REST) Watch

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

Jump to

Keyboard shortcuts

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