Documentation ¶
Index ¶
Constants ¶
View Source
const IDENTITY_TYPE = "hostpath"
IDENTITY_TYPE is the identity of this matcher.
View Source
const ID_HOSTNAME = "hostname"
ID_HOSTNAME is a hostname.
View Source
const ID_PATHPREFIX = "pathprefix"
ID_PATHPREFIX is the path prefix below the host.
View Source
const ID_PORT = "port"
ID_PORT is a port.
View Source
const ID_SCHEME = "scheme"
ID_SCHEME is the scheme prefix.
View Source
const ID_TYPE = cpi.ID_TYPE
ID_TYPE is the type of the consumer.
Variables ¶
View Source
var Matcher = IdentityMatcher("")
Functions ¶
func GetConsumerIdentity ¶
func GetConsumerIdentity(typ, _url string) cpi.ConsumerIdentity
func IdentityMatcher ¶
func IdentityMatcher(identityType string) cpi.IdentityMatcher
func Match ¶
func Match(identityType string, request, cur, id cpi.ConsumerIdentity) (match bool, better bool)
func PathPrefix ¶ added in v0.15.0
func PathPrefix(id cpi.ConsumerIdentity) string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.