Documentation ¶
Index ¶
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 ¶
View Source
var StatusStrategy = routeStatusStrategy{NewStrategy(nil)}
Functions ¶
func NewStrategy ¶ added in v1.0.6
func NewStrategy(allocator route.RouteAllocator) routeStrategy
NewStrategy initializes the default logic that applies when creating and updating Route objects via the REST API.
Types ¶
type Registry ¶
type Registry interface { // ListRoutes obtains list of routes that match a selector. ListRoutes(ctx apirequest.Context, options *metainternal.ListOptions) (*api.RouteList, error) // GetRoute retrieves a specific route. GetRoute(ctx apirequest.Context, routeID string, options *metav1.GetOptions) (*api.Route, error) // CreateRoute creates a new route. CreateRoute(ctx apirequest.Context, route *api.Route) error // UpdateRoute updates a route. UpdateRoute(ctx apirequest.Context, route *api.Route) error // DeleteRoute deletes a route. DeleteRoute(ctx apirequest.Context, routeID string) error // WatchRoutes watches for new/modified/deleted routes. WatchRoutes(ctx apirequest.Context, options *metainternal.ListOptions) (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.