mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-04-11 18:13:00 +00:00
Several packages are only used while running the e2e suite. These packages are less important to update, as the they can not influence the final executable that is part of the Ceph-CSI container-image. By moving these dependencies out of the main Ceph-CSI go.mod, it is easier to identify if a reported CVE affects Ceph-CSI, or only the testing (like most of the Kubernetes CVEs). Signed-off-by: Niels de Vos <ndevos@ibm.com>
21 lines
766 B
Go
21 lines
766 B
Go
package restful
|
|
|
|
// Copyright 2013 Ernest Micklei. All rights reserved.
|
|
// Use of this source code is governed by a license
|
|
// that can be found in the LICENSE file.
|
|
|
|
import "net/http"
|
|
|
|
// A RouteSelector finds the best matching Route given the input HTTP Request
|
|
// RouteSelectors can optionally also implement the PathProcessor interface to also calculate the
|
|
// path parameters after the route has been selected.
|
|
type RouteSelector interface {
|
|
|
|
// SelectRoute finds a Route given the input HTTP Request and a list of WebServices.
|
|
// It returns a selected Route and its containing WebService or an error indicating
|
|
// a problem.
|
|
SelectRoute(
|
|
webServices []*WebService,
|
|
httpRequest *http.Request) (selectedService *WebService, selected *Route, err error)
|
|
}
|