Documentation ¶
Index ¶
- Constants
- type REST
- func (rs *REST) Create(ctx kapi.Context, obj runtime.Object) (runtime.Object, error)
- func (rs *REST) Delete(ctx kapi.Context, id string) (runtime.Object, error)
- func (rs *REST) Get(ctx kapi.Context, id string) (runtime.Object, error)
- func (rs *REST) List(ctx kapi.Context, label labels.Selector, field fields.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) (runtime.Object, bool, error)
- func (rs *REST) Watch(ctx kapi.Context, label labels.Selector, field fields.Selector, ...) (watch.Interface, error)
- type Registry
Constants ¶
View Source
const HostGeneratedAnnotationKey = "openshift.io/host.generated"
HostGeneratedAnnotationKey is the key for an annotation set to "true" if the route's host was generated
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.
func NewREST ¶
func NewREST(registry Registry, allocator route.RouteAllocator) *REST
NewREST returns a RESTStorage object that will work against routes.
func (*REST) List ¶
func (rs *REST) List(ctx kapi.Context, label labels.Selector, field fields.Selector) (runtime.Object, error)
List obtains a list of Routes that match label.
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, label labels.Selector, field fields.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.