Documentation ¶
Overview ¶
Package endpoint provides Registry interface and it's RESTStorage implementation for storing Endpoint api objects.
Index ¶
- type REST
- func (rs *REST) Create(obj runtime.Object) (<-chan runtime.Object, error)
- func (rs *REST) Delete(id string) (<-chan runtime.Object, error)
- func (rs *REST) Get(id string) (runtime.Object, error)
- func (rs *REST) List(selector labels.Selector) (runtime.Object, error)
- func (rs REST) New() runtime.Object
- func (rs *REST) Update(obj runtime.Object) (<-chan runtime.Object, error)
- func (rs *REST) Watch(label, field labels.Selector, resourceVersion uint64) (watch.Interface, error)
- type Registry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type REST ¶
type REST struct {
// contains filtered or unexported fields
}
REST adapts endpoints into apiserver's RESTStorage model.
type Registry ¶
type Registry interface { ListEndpoints() (*api.EndpointsList, error) GetEndpoints(name string) (*api.Endpoints, error) WatchEndpoints(labels, fields labels.Selector, resourceVersion uint64) (watch.Interface, error) UpdateEndpoints(e *api.Endpoints) error }
Registry is an interface for things that know how to store endpoints.
Click to show internal directories.
Click to hide internal directories.