route

package
v1.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 13, 2015 License: Apache-2.0 Imports: 13 Imported by: 0

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 MatchRoute added in v1.0.6

func MatchRoute(label labels.Selector, field fields.Selector) generic.Matcher

MatchRoute returns a matcher for a route

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.

func RouteToSelectableFields added in v1.0.6

func RouteToSelectableFields(route *api.Route) fields.Set

RouteToSelectableFields returns a label set that represents the object

Types

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL