kubernetes.v0: gopkg.in/kubernetes/kubernetes.v0/pkg/registry/limitrange Index | Files

package limitrange

import "gopkg.in/kubernetes/kubernetes.v0/pkg/registry/limitrange"

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

Index

Package Files

doc.go registry.go rest.go

func NewEtcdRegistry Uses

func NewEtcdRegistry(h tools.EtcdHelper) generic.Registry

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

type REST Uses

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

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

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)

Create a LimitRange object

func (*REST) Delete Uses

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

Delete deletes the LimitRange with the specified name

func (*REST) Get Uses

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

Get gets a LimitRange with the specified name

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

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 updates a LimitRange object.

func (*REST) Watch Uses

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

Package limitrange imports 12 packages (graph). Updated 2018-03-13. Refresh now. Tools for package owners.