route

package
v3.6.165-1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2017 License: Apache-2.0 Imports: 17 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, nil)}

Functions

func DecorateLegacyRouteWithEmptyDestinationCACertificates

func DecorateLegacyRouteWithEmptyDestinationCACertificates(obj runtime.Object) error

DecorateLegacyRouteWithEmptyDestinationCACertificates is used for /oapi/v1 route endpoints to prevent legacy clients from seeing an empty destination CA certificate for reencrypt routes, which the 'route.openshift.io/v1' endpoint allows. These values are injected in REST responses and stripped in PrepareForCreate and PrepareForUpdate.

func GetAttrs

func GetAttrs(obj runtime.Object) (objLabels labels.Set, objFields fields.Set, err error)

GetAttrs returns labels and fields of a given object for filtering purposes

func Matcher added in v1.0.8

Matcher returns a matcher for a route

func NewStrategy added in v1.0.6

func NewStrategy(allocator route.RouteAllocator, sarClient SubjectAccessReviewInterface) 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) (*routeapi.RouteList, error)
	// GetRoute retrieves a specific route.
	GetRoute(ctx apirequest.Context, routeID string, options *metav1.GetOptions) (*routeapi.Route, error)
	// CreateRoute creates a new route.
	CreateRoute(ctx apirequest.Context, route *routeapi.Route) error
	// UpdateRoute updates a route.
	UpdateRoute(ctx apirequest.Context, route *routeapi.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.

type SubjectAccessReviewInterface

type SubjectAccessReviewInterface interface {
	CreateSubjectAccessReview(ctx apirequest.Context, subjectAccessReview *authorizationapi.SubjectAccessReview) (*authorizationapi.SubjectAccessReviewResponse, error)
}

Registry is an interface for performing subject access reviews

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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