Documentation ¶
Index ¶
- type REST
- func (rs *REST) Create(ctx kapi.Context, obj runtime.Object) (<-chan apiserver.RESTResult, error)
- func (rs *REST) Delete(ctx kapi.Context, id string) (<-chan apiserver.RESTResult, error)
- func (rs *REST) Get(ctx kapi.Context, id string) (runtime.Object, error)
- func (rs *REST) List(ctx kapi.Context, selector, fields labels.Selector) (runtime.Object, error)
- func (rs *REST) New() runtime.Object
- func (*REST) NewList() runtime.Object
- func (rs *REST) Update(ctx kapi.Context, obj runtime.Object) (<-chan apiserver.RESTResult, error)
- func (rs *REST) Watch(ctx kapi.Context, label, field labels.Selector, resourceVersion string) (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 is an implementation of RESTStorage for the api server.
type Registry ¶
type Registry interface { // ListRoutes obtains list of routes that match a selector. ListRoutes(ctx kapi.Context, selector labels.Selector) (*api.RouteList, error) // GetRoute retrieves a specific route. GetRoute(ctx kapi.Context, routeID string) (*api.Route, error) // CreateRoute creates a new route. CreateRoute(ctx kapi.Context, route *api.Route) error // UpdateRoute updates a route. UpdateRoute(ctx kapi.Context, route *api.Route) error // DeleteRoute deletes a route. DeleteRoute(ctx kapi.Context, routeID string) error // WatchRoutes watches for new/modified/deleted routes. WatchRoutes(ctx kapi.Context, labels, fields labels.Selector, resourceVersion string) (watch.Interface, error) }
Registry is an interface for things that know how to store Routes.
Click to show internal directories.
Click to hide internal directories.