Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authenticator ¶
Authenticator is an autogenerated mock type for the Authenticator type
func (*Authenticator) Authenticate ¶
func (_m *Authenticator) Authenticate(authHeader string) (map[string]interface{}, error)
Authenticate provides a mock function with given fields: authHeader
type Authorizer ¶
Authorizer is an autogenerated mock type for the Authorizer type
func (*Authorizer) Authorize ¶
func (_m *Authorizer) Authorize(policyNames []string, claims map[string]interface{}) (string, error)
Authorize provides a mock function with given fields: policyNames, claims
func (*Authorizer) IsAnonymousAllowed ¶
func (_m *Authorizer) IsAnonymousAllowed(matchedPolicies []bouncer.RoutePolicy) bool
IsAnonymousAllowed provides a mock function with given fields: matchedPolicies
type ResponseWriter ¶
ResponseWriter is an autogenerated mock type for the ResponseWriter type
func (*ResponseWriter) Header ¶
func (_m *ResponseWriter) Header() http.Header
Header provides a mock function with given fields:
func (*ResponseWriter) Write ¶
func (_m *ResponseWriter) Write(_a0 []byte) (int, error)
Write provides a mock function with given fields: _a0
func (*ResponseWriter) WriteHeader ¶
func (_m *ResponseWriter) WriteHeader(statusCode int)
WriteHeader provides a mock function with given fields: statusCode
type RouteMatcher ¶
RouteMatcher is an autogenerated mock type for the RouteMatcher type
func (*RouteMatcher) MatchRoutePolicies ¶
func (_m *RouteMatcher) MatchRoutePolicies(path string, method string) ([]bouncer.RoutePolicy, error)
MatchRoutePolicies provides a mock function with given fields: path, method