Documentation ¶
Index ¶
- func NewStorage(registry Registry) apiserver.RESTStorage
- type Registry
- type Storage
- func (rs *Storage) Create(obj interface{}) (<-chan interface{}, error)
- func (rs *Storage) Delete(id string) (<-chan interface{}, error)
- func (rs *Storage) Get(id string) (interface{}, error)
- func (rs *Storage) List(selector labels.Selector) (interface{}, error)
- func (rs Storage) New() interface{}
- func (rs *Storage) Update(obj interface{}) (<-chan interface{}, error)
- func (rs *Storage) Watch(label, field labels.Selector, resourceVersion uint64) (watch.Interface, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewStorage ¶
func NewStorage(registry Registry) apiserver.RESTStorage
NewStorage returns a new Storage implementation for endpoints
Types ¶
type Registry ¶
type Registry interface { 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.
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
Storage adapts endpoints into apiserver's RESTStorage model.
Click to show internal directories.
Click to hide internal directories.