package namespace
import "k8s.io/kubernetes/pkg/registry/namespace"
Package namespace provides Registry interface and it's REST implementation for storing Namespace api objects.
Index ¶
- func NewEtcdRegistry(h tools.EtcdHelper) generic.Registry
- type REST
- func NewREST(registry generic.Registry) *REST
- func (rs *REST) Create(ctx api.Context, obj runtime.Object) (runtime.Object, error)
- func (rs *REST) Delete(ctx api.Context, name string) (runtime.Object, error)
- func (rs *REST) Get(ctx api.Context, id string) (runtime.Object, error)
- func (rs *REST) List(ctx api.Context, label, field labels.Selector) (runtime.Object, error)
- func (*REST) New() runtime.Object
- func (*REST) NewList() runtime.Object
- func (rs *REST) Update(ctx api.Context, obj runtime.Object) (runtime.Object, bool, error)
- func (rs *REST) Watch(ctx api.Context, label, field labels.Selector, resourceVersion string) (watch.Interface, error)
Functions ¶
func NewEtcdRegistry ¶
func NewEtcdRegistry(h tools.EtcdHelper) generic.Registry
NewEtcdRegistry returns a registry which will store Namespace objects in the given EtcdHelper.
Types ¶
type REST ¶
type REST struct {
// contains filtered or unexported fields
}
REST provides the RESTStorage access patterns to work with Namespace objects.
func NewREST ¶
NewREST returns a new REST. You must use a registry created by NewEtcdRegistry unless you're testing.
func (*REST) Create ¶
Create creates a Namespace object
func (*REST) Delete ¶
Delete deletes the Namespace with the specified name
func (*REST) Get ¶
func (*REST) List ¶
func (*REST) New ¶
New returns a new api.Namespace
func (*REST) NewList ¶
func (*REST) Update ¶
Update updates a Namespace object.
func (*REST) Watch ¶
func (rs *REST) Watch(ctx api.Context, label, field labels.Selector, resourceVersion string) (watch.Interface, error)
Source Files ¶
doc.go registry.go rest.go
- Version
- v0.12.0
- Published
- Mar 3, 2015
- Platform
- darwin/amd64
- Imports
- 11 packages
- Last checked
- 40 seconds ago –
Tools for package owners.