Documentation ¶
Index ¶
- func GetEndpointMapFromResponse(respPairs []*Pair, methodsInfo map[string]Info, ...) (map[string]*gwAuthzRes.MethodsAllowed, error)
- func InvertMapNonParameterized(inputMap map[string]Info) map[Pair][]string
- func InvertMapParameterized(inputMap map[string]Info, path string, paramList []string) (map[Pair][]string, error)
- type Info
- type Pair
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEndpointMapFromResponse ¶
func GetEndpointMapFromResponse( respPairs []*Pair, methodsInfo map[string]Info, mapByResourcePlusAction map[Pair][]string, fullyHydrate bool) (map[string]*gwAuthzRes.MethodsAllowed, error)
GetEndpointMapFromResponse returns a map whose keys are HTTP endpoints. The corresponding value is a sub-map of HTTP methods with boolean values indicating whether the user has permission to access that HTTP method on the HTTP endpoint.
func InvertMapNonParameterized ¶
InvertMapNonParameterized reverses the method map with a compound key of resource & action. That allows us to separate the http metadata from the resource/action pair, send the latter off to authz-service for processing, then upon return re-associate them to the one (or more) tuple of http data.
Types ¶
Click to show internal directories.
Click to hide internal directories.